mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
genirq: Move irq_fixup_move_pending() to core
Now that x86 uses the generic code, the function declaration and inline stub can move to the core internal header. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jens Axboe <axboe@kernel.dk> Cc: Marc Zyngier <marc.zyngier@arm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Keith Busch <keith.busch@intel.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Christoph Hellwig <hch@lst.de> Link: http://lkml.kernel.org/r/20170619235445.928156166@linutronix.de
This commit is contained in:
parent
ad7a929fa4
commit
36d84fb451
2 changed files with 5 additions and 5 deletions
|
@ -492,15 +492,10 @@ extern void irq_migrate_all_off_this_cpu(void);
|
||||||
void irq_move_irq(struct irq_data *data);
|
void irq_move_irq(struct irq_data *data);
|
||||||
void irq_move_masked_irq(struct irq_data *data);
|
void irq_move_masked_irq(struct irq_data *data);
|
||||||
void irq_force_complete_move(struct irq_desc *desc);
|
void irq_force_complete_move(struct irq_desc *desc);
|
||||||
bool irq_fixup_move_pending(struct irq_desc *desc, bool force_clear);
|
|
||||||
#else
|
#else
|
||||||
static inline void irq_move_irq(struct irq_data *data) { }
|
static inline void irq_move_irq(struct irq_data *data) { }
|
||||||
static inline void irq_move_masked_irq(struct irq_data *data) { }
|
static inline void irq_move_masked_irq(struct irq_data *data) { }
|
||||||
static inline void irq_force_complete_move(struct irq_desc *desc) { }
|
static inline void irq_force_complete_move(struct irq_desc *desc) { }
|
||||||
static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern int no_irq_affinity;
|
extern int no_irq_affinity;
|
||||||
|
|
|
@ -272,6 +272,7 @@ static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc)
|
||||||
{
|
{
|
||||||
return desc->pending_mask;
|
return desc->pending_mask;
|
||||||
}
|
}
|
||||||
|
bool irq_fixup_move_pending(struct irq_desc *desc, bool force_clear);
|
||||||
#else /* CONFIG_GENERIC_PENDING_IRQ */
|
#else /* CONFIG_GENERIC_PENDING_IRQ */
|
||||||
static inline bool irq_can_move_pcntxt(struct irq_data *data)
|
static inline bool irq_can_move_pcntxt(struct irq_data *data)
|
||||||
{
|
{
|
||||||
|
@ -293,6 +294,10 @@ static inline struct cpumask *irq_desc_get_pending_mask(struct irq_desc *desc)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
static inline bool irq_fixup_move_pending(struct irq_desc *desc, bool fclear)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
#endif /* !CONFIG_GENERIC_PENDING_IRQ */
|
#endif /* !CONFIG_GENERIC_PENDING_IRQ */
|
||||||
|
|
||||||
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS
|
#ifdef CONFIG_GENERIC_IRQ_DEBUGFS
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue