Skip to content

Commit afa3536

Browse files
committed
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
2 parents 35a9ad8 + 9b01f5b commit afa3536

43 files changed

Lines changed: 133 additions & 29 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/alpha/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ generic-y += clkdev.h
44
generic-y += cputime.h
55
generic-y += exec.h
66
generic-y += hash.h
7+
generic-y += irq_work.h
78
generic-y += mcs_spinlock.h
89
generic-y += preempt.h
910
generic-y += scatterlist.h

‎arch/arc/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ generic-y += ioctl.h
1818
generic-y += ioctls.h
1919
generic-y += ipcbuf.h
2020
generic-y += irq_regs.h
21+
generic-y += irq_work.h
2122
generic-y += kmap_types.h
2223
generic-y += kvm_para.h
2324
generic-y += local.h

‎arch/arm/include/asm/irq_work.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 */

‎arch/arm/kernel/smp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ void arch_send_call_function_single_ipi(int cpu)
499499
#ifdef CONFIG_IRQ_WORK
500500
void arch_irq_work_raise(void)
501501
{
502-
if (is_smp())
502+
if (arch_irq_work_has_interrupt())
503503
smp_cross_call(cpumask_of(smp_processor_id()), IPI_IRQ_WORK);
504504
}
505505
#endif

‎arch/arm64/include/asm/Kbuild‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ generic-y += current.h
99
generic-y += delay.h
1010
generic-y += div64.h
1111
generic-y += dma.h
12-
generic-y += emergency-restart.h
1312
generic-y += early_ioremap.h
13+
generic-y += emergency-restart.h
1414
generic-y += errno.h
1515
generic-y += ftrace.h
1616
generic-y += hash.h

‎arch/arm64/include/asm/irq_work.h‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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 */

‎arch/arm64/include/asm/smp.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ extern void smp_init_cpus(void);
4848
*/
4949
extern void set_smp_cross_call(void (*)(const struct cpumask *, unsigned int));
5050

51+
extern void (*__smp_cross_call)(const struct cpumask *, unsigned int);
52+
5153
/*
5254
* Called from the secondary holding pen, this is the secondary CPU entry point.
5355
*/

‎arch/arm64/kernel/smp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
470470
}
471471
}
472472

473-
static void (*__smp_cross_call)(const struct cpumask *, unsigned int);
473+
void (*__smp_cross_call)(const struct cpumask *, unsigned int);
474474

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

‎arch/avr32/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ generic-y += exec.h
99
generic-y += futex.h
1010
generic-y += hash.h
1111
generic-y += irq_regs.h
12+
generic-y += irq_work.h
1213
generic-y += local.h
1314
generic-y += local64.h
1415
generic-y += mcs_spinlock.h

‎arch/blackfin/include/asm/Kbuild‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ generic-y += hw_irq.h
1515
generic-y += ioctl.h
1616
generic-y += ipcbuf.h
1717
generic-y += irq_regs.h
18+
generic-y += irq_work.h
1819
generic-y += kdebug.h
1920
generic-y += kmap_types.h
2021
generic-y += kvm_para.h

0 commit comments

Comments
 (0)