From: Ingo Molnar <mingo@kernel.org>
To: Vlad Zolotarov <vlad@scalemp.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
"Shai Fultheim (Shai@ScaleMP.com)" <Shai@scalemp.com>
Subject: Re: [PATCH v2 2/2] x86: Added read_mostly declaration/definition to vars from smp.h
Date: Fri, 18 May 2012 10:14:16 +0200 [thread overview]
Message-ID: <20120518081416.GA20872@gmail.com> (raw)
In-Reply-To: <201205151831.57871.vlad@scalemp.com>
* Vlad Zolotarov <vlad@scalemp.com> wrote:
> Added a "read-mostly" qualifier to the following variables in smp.h:
> - cpu_sibling_map
> - cpu_core_map
> - cpu_llc_shared_map
> - cpu_llc_id
> - cpu_number
> - x86_cpu_to_apicid
> - x86_bios_cpu_apicid
> - x86_cpu_to_logical_apicid
>
> As long as all the variables above are only written during the initialization,
> this change is meant to prevent the false sharing and improve the
> performance on large multiprocessor systems.
>
> Signed-off-by: Vlad Zolotarov <vlad@scalemp.com>
> Signed-off-by: Shai Fultheim <shai@scalemp.com>
> ---
> arch/x86/include/asm/apic.h | 2 +-
> arch/x86/include/asm/smp.h | 16 ++++++++--------
> arch/x86/kernel/apic/apic.c | 6 +++---
> arch/x86/kernel/setup_percpu.c | 2 +-
> arch/x86/kernel/smpboot.c | 8 ++++----
> 5 files changed, 17 insertions(+), 17 deletions(-)
This does not build on !SMP kernels that has APIC enabled.
Thanks,
Ingo
next prev parent reply other threads:[~2012-05-18 8:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-15 15:31 [PATCH v2 2/2] x86: Added read_mostly declaration/definition to vars from smp.h Vlad Zolotarov
2012-05-18 8:14 ` Ingo Molnar [this message]
2012-05-20 13:55 ` Vlad
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=20120518081416.GA20872@gmail.com \
--to=mingo@kernel.org \
--cc=Shai@scalemp.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=vlad@scalemp.com \
/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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.