diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 06:30:57 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 06:30:57 -0400 |
| commit | afa3536be88b435a057cb727b48fd3d760a497d2 (patch) | |
| tree | 8562d3c8327286746ae835ef8eb39d4494a1054d | |
| parent | 35a9ad8af0bb0fa3525e6d0d20e32551d226f38e (diff) | |
| parent | 9b01f5bf3999a3db5b1bbd9fdfd80d8d304e94ee (diff) | |
Merge branch 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fixes from Ingo Molnar:
"Main changes:
- Fix the deadlock reported by Dave Jones et al
- Clean up and fix nohz_full interaction with arch abilities
- nohz init code consolidation/cleanup"
* 'timers-nohz-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
nohz: nohz full depends on irq work self IPI support
nohz: Consolidate nohz full init code
arm64: Tell irq work about self IPI support
arm: Tell irq work about self IPI support
x86: Tell irq work about self IPI support
irq_work: Force raised irq work to run on irq work interrupt
irq_work: Introduce arch_irq_work_has_interrupt()
nohz: Move nohz full init call to tick init
43 files changed, 133 insertions, 29 deletions
diff --git a/arch/alpha/include/asm/Kbuild b/arch/alpha/include/asm/Kbuild index e858aa0ad8af..a52cbf178c3a 100644 --- a/arch/alpha/include/asm/Kbuild +++ b/arch/alpha/include/asm/Kbuild | |||
| @@ -4,6 +4,7 @@ generic-y += clkdev.h | |||
| 4 | generic-y += cputime.h | 4 | generic-y += cputime.h |
| 5 | generic-y += exec.h | 5 | generic-y += exec.h |
| 6 | generic-y += hash.h | 6 | generic-y += hash.h |
| 7 | generic-y += irq_work.h | ||
| 7 | generic-y += mcs_spinlock.h | 8 | generic-y += mcs_spinlock.h |
| 8 | generic-y += preempt.h | 9 | generic-y += preempt.h |
| 9 | generic-y += scatterlist.h | 10 | generic-y += scatterlist.h |
diff --git a/arch/arc/include/asm/Kbuild b/arch/arc/include/asm/Kbuild index e76fd79f32b0..b8fffc1a2ac2 100644 --- a/arch/arc/include/asm/Kbuild +++ b/arch/arc/include/asm/Kbuild | |||
| @@ -18,6 +18,7 @@ generic-y += ioctl.h | |||
| 18 | generic-y += ioctls.h | 18 | generic-y += ioctls.h |
| 19 | generic-y += ipcbuf.h | 19 | generic-y += ipcbuf.h |
| 20 | generic-y += irq_regs.h | 20 | generic-y += irq_regs.h |
| 21 | generic-y += irq_work.h | ||
| 21 | generic-y += kmap_types.h | 22 | generic-y += kmap_types.h |
| 22 | generic-y += kvm_para.h | 23 | generic-y += kvm_para.h |
| 23 | generic-y += local.h | 24 | generic-y += local.h |
diff --git a/arch/arm/include/asm/irq_work.h b/arch/arm/include/asm/irq_work.h new file mode 100644 index 000000000000..712d03e5973a --- /dev/null +++ b/arch/arm/include/asm/irq_work.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #ifndef __ASM_ARM_IRQ_WORK_H | ||
| 2 | #define __ASM_ARM_IRQ_WORK_H | ||
| 3 | |||
| 4 | #include <asm/smp_plat.h> | ||
| 5 | |||
| 6 | static inline bool arch_irq_work_has_interrupt(void) | ||
| 7 | { | ||
| 8 | return is_smp(); | ||
| 9 | } | ||
| 10 | |||
| 11 | #endif /* _ASM_ARM_IRQ_WORK_H */ | ||
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index 39c74a2c3df9..13396d3d600e 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c | |||
| @@ -499,7 +499,7 @@ void arch_send_call_function_single_ipi(int cpu) | |||
| 499 | #ifdef CONFIG_IRQ_WORK | 499 | #ifdef CONFIG_IRQ_WORK |
| 500 | void arch_irq_work_raise(void) | 500 | void arch_irq_work_raise(void) |
| 501 | { | 501 | { |
| 502 | if (is_smp()) | 502 | if (arch_irq_work_has_interrupt()) |
| 503 | smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); | 503 | smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK); |
| 504 | } | 504 | } |
| 505 | #endif | 505 | #endif |
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 0b3fcf86e6ba..c1968475cc4e 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild | |||
| @@ -9,8 +9,8 @@ generic-y += current.h | |||
| 9 | generic-y += delay.h | 9 | generic-y += delay.h |
| 10 | generic-y += div64.h | 10 | generic-y += div64.h |
| 11 | generic-y += dma.h | 11 | generic-y += dma.h |
| 12 | generic-y += emergency-restart.h | ||
| 13 | generic-y += early_ioremap.h | 12 | generic-y += early_ioremap.h |
| 13 | generic-y += emergency-restart.h | ||
| 14 | generic-y += errno.h | 14 | generic-y += errno.h |
| 15 | generic-y += ftrace.h | 15 | generic-y += ftrace.h |
| 16 | generic-y += hash.h | 16 | generic-y += hash.h |
diff --git a/arch/arm64/include/asm/irq_work.h b/arch/arm64/include/asm/irq_work.h new file mode 100644 index 000000000000..8e24ef3f7c82 --- /dev/null +++ b/arch/arm64/include/asm/irq_work.h | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #ifndef __ASM_IRQ_WORK_H | ||
| 2 | #define __ASM_IRQ_WORK_H | ||
| 3 | |||
| 4 | #include <asm/smp.h> | ||
| 5 | |||
| 6 | static inline bool arch_irq_work_has_interrupt(void) | ||
| 7 | { | ||
| 8 | return !!__smp_cross_call; | ||
| 9 | } | ||
| 10 | |||
| 11 | #endif /* __ASM_IRQ_WORK_H */ | ||
diff --git a/arch/arm64/include/asm/smp.h b/arch/arm64/include/asm/smp.h index a498f2cd2c2a..780f82c827b6 100644 --- a/arch/arm64/include/asm/smp.h +++ b/arch/arm64/include/asm/smp.h | |||
| @@ -48,6 +48,8 @@ extern void smp_init_cpus(void); | |||
| 48 | */ | 48 | */ |
| 49 | extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int)); | 49 | extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int)); |
| 50 | 50 | ||
| 51 | extern void (*__smp_cross_call)(const struct cpumask *, unsigned int); | ||
| 52 | |||
| 51 | /* | 53 | /* |
| 52 | * Called from the secondary holding pen, this is the secondary CPU entry point. | 54 | * Called from the secondary holding pen, this is the secondary CPU entry point. |
| 53 | */ | 55 | */ |
diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c index 474339718105..b06d1d90ee8c 100644 --- a/arch/arm64/kernel/smp.c +++ b/arch/arm64/kernel/smp.c | |||
| @@ -470,7 +470,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus) | |||
| 470 | } | 470 | } |
| 471 | } | 471 | } |
| 472 | 472 | ||
| 473 | static void (*__smp_cross_call)(const struct cpumask *, unsigned int); | 473 | void (*__smp_cross_call)(const struct cpumask *, unsigned int); |
| 474 | 474 | ||
| 475 | void __init set_smp_cross_call(void (*fn)(const struct cpumask *, unsigned int)) | 475 | void __init set_smp_cross_call(void (*fn)(const struct cpumask *, unsigned int)) |
| 476 | { | 476 | { |
diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild index 00a0f3ccd6eb..2a71b1cb9848 100644 --- a/arch/avr32/include/asm/Kbuild +++ b/arch/avr32/include/asm/Kbuild | |||
| @@ -9,6 +9,7 @@ generic-y += exec.h | |||
| 9 | generic-y += futex.h | 9 | generic-y += futex.h |
| 10 | generic-y += hash.h | 10 | generic-y += hash.h |
| 11 | generic-y += irq_regs.h | 11 | generic-y += irq_regs.h |
| 12 | generic-y += irq_work.h | ||
| 12 | generic-y += local.h | 13 | generic-y += local.h |
| 13 | generic-y += local64.h | 14 | generic-y += local64.h |
| 14 | generic-y += mcs_spinlock.h | 15 | generic-y += mcs_spinlock.h |
diff --git a/arch/blackfin/include/asm/Kbuild b/arch/blackfin/include/asm/Kbuild index 0d93b9a79ca9..46ed6bb9c679 100644 --- a/arch/blackfin/include/asm/Kbuild +++ b/arch/blackfin/include/asm/Kbuild | |||
| @@ -15,6 +15,7 @@ generic-y += hw_irq.h | |||
| 15 | generic-y += ioctl.h | 15 | generic-y += ioctl.h |
| 16 | generic-y += ipcbuf.h | 16 | generic-y += ipcbuf.h |
| 17 | generic-y += irq_regs.h | 17 | generic-y += irq_regs.h |
| 18 | generic-y += irq_work.h | ||
| 18 | generic-y += kdebug.h | 19 | generic-y += kdebug.h |
