Commit 0f6f47ba authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar

softirq/core: Turn default irq_cpustat_t to standard per-cpu

In order to optimize and consolidate softirq mask accesses, let's
convert the default irq_cpustat_t implementation to per-CPU standard API.
Signed-off-by: default avatarFrederic Weisbecker <>
Acked-by: default avatarThomas Gleixner <>
Acked-by: default avatarPeter Zijlstra <>
Cc: Benjamin Herrenschmidt <>
Cc: David S. Miller <>
Cc: Fenghua Yu <>
Cc: Heiko Carstens <>
Cc: Helge Deller <>
Cc: James E.J. Bottomley <>
Cc: Linus Torvalds <>
Cc: Martin Schwidefsky <>
Cc: Michael Ellerman <>
Cc: Paul Mackerras <>
Cc: Rich Felker <>
Cc: Sebastian Andrzej Siewior <>
Cc: Tony Luck <>
Cc: Yoshinori Sato <>
Link: default avatarIngo Molnar <>
parent 30d72334
......@@ -18,8 +18,8 @@
#ifndef __ARCH_IRQ_STAT
extern irq_cpustat_t irq_stat[]; /* defined in asm/hardirq.h */
#define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
DECLARE_PER_CPU_ALIGNED(irq_cpustat_t, irq_stat); /* defined in asm/hardirq.h */
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat.member, cpu))
/* arch independent irq_stat fields */
......@@ -49,8 +49,8 @@
#ifndef __ARCH_IRQ_STAT
irq_cpustat_t irq_stat[NR_CPUS] ____cacheline_aligned;
DEFINE_PER_CPU_ALIGNED(irq_cpustat_t, irq_stat);
static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment