Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36310736 authored by Frederic Weisbecker's avatar Frederic Weisbecker
Browse files

arm64: Tell irq work about self IPI support



ARM64 irq work self-IPI support depends on __smp_cross_call to point to
some relevant IRQ controller operations. This information should be
available after the call to init_IRQ().

Lets implement arch_irq_work_has_interrupt() accordingly.

Acked-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
parent 09f6edd4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -19,7 +19,6 @@ generic-y += ioctl.h
generic-y += ioctls.h
generic-y += ipcbuf.h
generic-y += irq_regs.h
generic-y += irq_work.h
generic-y += kdebug.h
generic-y += kmap_types.h
generic-y += kvm_para.h
+11 −0
Original line number Diff line number Diff line
#ifndef __ASM_IRQ_WORK_H
#define __ASM_IRQ_WORK_H

#include <asm/smp.h>

static inline bool arch_irq_work_has_interrupt(void)
{
	return !!__smp_cross_call;
}

#endif /* __ASM_IRQ_WORK_H */
+2 −0
Original line number Diff line number Diff line
@@ -48,6 +48,8 @@ extern void smp_init_cpus(void);
 */
extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));

extern void (*__smp_cross_call)(const struct cpumask *, unsigned int);

/*
 * Called from the secondary holding pen, this is the secondary CPU entry point.
 */
+1 −1
Original line number Diff line number Diff line
@@ -470,7 +470,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
	}
}

static void (*__smp_cross_call)(const struct cpumask *, unsigned int);
void (*__smp_cross_call)(const struct cpumask *, unsigned int);

void __init set_smp_cross_call(void (*fn)(const struct cpumask *, unsigned int))
{