LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: tip-bot for Frederic Weisbecker <tipbot@zytor.com> To: linux-tip-commits@vger.kernel.org Cc: paulus@samba.org, mpe@ellerman.id.au, tglx@linutronix.de, peterz@infradead.org, frederic@kernel.org, dalias@libc.org, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, deller@gmx.de, schwidefsky@de.ibm.com, benh@kernel.crashing.org, davem@davemloft.net, bigeasy@linutronix.de, jejb@parisc-linux.org, mingo@kernel.org, torvalds@linux-foundation.org, ysato@users.sourceforge.jp, heiko.carstens@de.ibm.com, hpa@zytor.com, tony.luck@intel.com Subject: [tip:irq/core] softirq/core: Turn default irq_cpustat_t to standard per-cpu Date: Mon, 14 May 2018 05:48:52 -0700 [thread overview] Message-ID: <tip-0f6f47bacba514f4e9f61de0d85940dfb41498cc@git.kernel.org> (raw) In-Reply-To: <1525786706-22846-5-git-send-email-frederic@kernel.org> Commit-ID: 0f6f47bacba514f4e9f61de0d85940dfb41498cc Gitweb: https://git.kernel.org/tip/0f6f47bacba514f4e9f61de0d85940dfb41498cc Author: Frederic Weisbecker <frederic@kernel.org> AuthorDate: Tue, 8 May 2018 15:38:19 +0200 Committer: Ingo Molnar <mingo@kernel.org> CommitDate: Mon, 14 May 2018 11:25:27 +0200 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: Frederic Weisbecker <frederic@kernel.org> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: David S. Miller <davem@davemloft.net> Cc: Fenghua Yu <fenghua.yu@intel.com> Cc: Heiko Carstens <heiko.carstens@de.ibm.com> Cc: Helge Deller <deller@gmx.de> Cc: James E.J. Bottomley <jejb@parisc-linux.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Michael Ellerman <mpe@ellerman.id.au> Cc: Paul Mackerras <paulus@samba.org> Cc: Rich Felker <dalias@libc.org> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Tony Luck <tony.luck@intel.com> Cc: Yoshinori Sato <ysato@users.sourceforge.jp> Link: http://lkml.kernel.org/r/1525786706-22846-5-git-send-email-frederic@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org> --- include/linux/irq_cpustat.h | 4 ++-- kernel/softirq.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/irq_cpustat.h b/include/linux/irq_cpustat.h index 4954948d1973..ddea03c7c39d 100644 --- a/include/linux/irq_cpustat.h +++ b/include/linux/irq_cpustat.h @@ -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)) #endif /* arch independent irq_stat fields */ diff --git a/kernel/softirq.c b/kernel/softirq.c index 177de3640c78..c5fafd792df1 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -49,8 +49,8 @@ */ #ifndef __ARCH_IRQ_STAT -irq_cpustat_t irq_stat[NR_CPUS] ____cacheline_aligned; -EXPORT_SYMBOL(irq_stat); +DEFINE_PER_CPU_ALIGNED(irq_cpustat_t, irq_stat); +EXPORT_PER_CPU_SYMBOL(irq_stat); #endif static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp;
next prev parent reply other threads:[~2018-05-14 12:49 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-08 13:38 [GIT PULL] Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 01/11] ia64: Convert local_softirq_pending() to per-cpu ops Frederic Weisbecker 2018-05-14 12:47 ` [tip:irq/core] softirq/ia64: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 02/11] sparc: Convert local_softirq_pending() to use per-cpu op Frederic Weisbecker 2018-05-14 12:47 ` [tip:irq/core] softirq/sparc: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 03/11] sh: Use nmi_count() on /proc/interrupts print out Frederic Weisbecker 2018-05-14 12:48 ` [tip:irq/core] softirq/sh: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 04/11] softirq: Turn default irq_cpustat_t to standard per-cpu Frederic Weisbecker 2018-05-14 12:48 ` tip-bot for Frederic Weisbecker [this message] 2018-05-08 13:38 ` [PATCH 05/11] softirq: Consolidate default local_softirq_pending() implementations Frederic Weisbecker 2018-05-14 12:49 ` [tip:irq/core] softirq/core: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 06/11] ia64: Switch to generic local_softirq_pending() implementation Frederic Weisbecker 2018-05-14 12:49 ` [tip:irq/core] softirq/ia64: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 07/11] parisc: " Frederic Weisbecker 2018-05-14 12:50 ` [tip:irq/core] softirq/parisc: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 08/11] powerpc: " Frederic Weisbecker 2018-05-14 12:50 ` [tip:irq/core] softirq/powerpc: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 09/11] sparc: " Frederic Weisbecker 2018-05-14 12:51 ` [tip:irq/core] softirq/sparc: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 10/11] x86: " Frederic Weisbecker 2018-05-14 12:51 ` [tip:irq/core] softirq/x86: " tip-bot for Frederic Weisbecker 2018-05-08 13:38 ` [PATCH 11/11] softirq/s390: Move default mutators of overwritten softirq mask to s390 Frederic Weisbecker 2018-05-14 12:52 ` [tip:irq/core] " tip-bot for Frederic Weisbecker 2018-05-08 13:46 ` [GIT PULL] softirq: Consolidate and optimize softirq mask v4 Frederic Weisbecker
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=tip-0f6f47bacba514f4e9f61de0d85940dfb41498cc@git.kernel.org \ --to=tipbot@zytor.com \ --cc=benh@kernel.crashing.org \ --cc=bigeasy@linutronix.de \ --cc=dalias@libc.org \ --cc=davem@davemloft.net \ --cc=deller@gmx.de \ --cc=fenghua.yu@intel.com \ --cc=frederic@kernel.org \ --cc=heiko.carstens@de.ibm.com \ --cc=hpa@zytor.com \ --cc=jejb@parisc-linux.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-tip-commits@vger.kernel.org \ --cc=mingo@kernel.org \ --cc=mpe@ellerman.id.au \ --cc=paulus@samba.org \ --cc=peterz@infradead.org \ --cc=schwidefsky@de.ibm.com \ --cc=tglx@linutronix.de \ --cc=tony.luck@intel.com \ --cc=torvalds@linux-foundation.org \ --cc=ysato@users.sourceforge.jp \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).