summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/hardirq.h
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@novell.com>2010-04-21 15:21:51 +0100
committerH. Peter Anvin <hpa@zytor.com>2010-04-28 16:58:49 -0700
commit402af0d7c692ddcfa2333e93d3f275ebd0487926 (patch)
tree08d016caa7dc404d7400281b57fb634108b0291f /arch/x86/include/asm/hardirq.h
parent1d16b0f2f3edf05f12a9e3960588e0d4854157bb (diff)
downloadtalos-obmc-linux-402af0d7c692ddcfa2333e93d3f275ebd0487926.tar.gz
talos-obmc-linux-402af0d7c692ddcfa2333e93d3f275ebd0487926.zip
x86, asm: Introduce and use percpu_inc()
... generating slightly smaller code. Signed-off-by: Jan Beulich <jbeulich@novell.com> LKML-Reference: <4BCF261F020000780003B33C@vpn.id2.novell.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/include/asm/hardirq.h')
-rw-r--r--arch/x86/include/asm/hardirq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/hardirq.h b/arch/x86/include/asm/hardirq.h
index 0f8576427cfe..aeab29aee617 100644
--- a/arch/x86/include/asm/hardirq.h
+++ b/arch/x86/include/asm/hardirq.h
@@ -35,7 +35,7 @@ DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
#define __ARCH_IRQ_STAT
-#define inc_irq_stat(member) percpu_add(irq_stat.member, 1)
+#define inc_irq_stat(member) percpu_inc(irq_stat.member)
#define local_softirq_pending() percpu_read(irq_stat.__softirq_pending)
OpenPOWER on IntegriCloud