irq_internals.h 684 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. *
  5. */
  6. #ifndef _IRQ_INTERNALS_H
  7. #define _IRQ_INTERNALS_H
  8. /*
  9. * Bits used by threaded handlers:
  10. * IRQTF_RUNTHREAD - signals that the interrupt handler thread should run
  11. * IRQTF_WARNED - warning "IRQ_WAKE_THREAD w/o thread_fn" has been printed
  12. * IRQTF_AFFINITY - irq thread is requested to adjust affinity
  13. * IRQTF_FORCED_THREAD - irq action is force threaded
  14. */
  15. enum {
  16. IRQTF_RUNTHREAD,
  17. IRQTF_WARNED,
  18. IRQTF_AFFINITY,
  19. IRQTF_FORCED_THREAD,
  20. };
  21. extern int irq_do_set_affinity(struct irq_data *data,
  22. const struct cpumask *dest, bool force);
  23. #endif