From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Anton Vorontsov <avorontsov@mvista.com>,
Bryan Huntsman <bryanh@codeaurora.org>,
Colin Cross <ccross@android.com>,
Daniel Walker <dwalker@codeaurora.org>,
David Brown <davidb@codeaurora.org>,
Erik Gilling <konkers@android.com>,
Kukjin Kim <kgene.kim@samsung.com>,
linux-arm-kernel@lists.infradead.org,
linux-arm-msm@vger.kernel.org, linux-omap@vger.kernel.org,
linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org,
Olof Johansson <olof@lixom.net>,
Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>,
Tony Lindgren <tony@atomide.com>
Subject: [PATCH 0/5] ARM: GIC: cleanup
Date: Sun, 5 Dec 2010 11:33:11 +0000 [thread overview]
Message-ID: <20101205113311.GC9138@n2100.arm.linux.org.uk> (raw)
This patch series cleans up the GIC code, consolidating some of the
per-platform practices into the common GIC code.
One notable change is to the initialization methods - we used to
require platforms to pass in the address of the per-CPU interfaces
despite them always being identical between all cores. This was
nonsense, as even in the extremely unlikely event that they were
different, we aren't storing them in a per-CPU manner.
The GIC initialization methods are now simpler: one call to gic_init()
from the boot CPU, and a call to gic_secondary_init() as each
secondary CPU starts - and no need for platforms to keep track of
the address anymore.
One question remains on this: on platforms where there are more than
one GIC, do these have separate CPU interfaces as well?
We also consolidate gic_cpu_base_addr to save platforms using that -
but only for the first GIC, and therefore we can have a common
get_irqnr_preamble assembler macro for platforms which make use of
this.
Lastly, we move the GIC data to __read_mostly - and when we have
support for this feature, we benefit from avoiding potential cache
line ping-pongs between cores for data so marked.
arch/arm/common/gic.c | 59 +++++++++++++-------
arch/arm/include/asm/hardware/entry-macro-gic.S | 7 +++
arch/arm/include/asm/hardware/gic.h | 6 ++-
arch/arm/mach-cns3xxx/core.c | 7 +--
arch/arm/mach-cns3xxx/core.h | 1 -
arch/arm/mach-cns3xxx/include/mach/entry-macro.S | 5 --
arch/arm/mach-msm/board-msm8x60.c | 7 +--
arch/arm/mach-omap2/include/mach/entry-macro.S | 1 +
arch/arm/mach-omap2/include/mach/omap4-common.h | 1 -
arch/arm/mach-omap2/omap-smp.c | 2 +-
arch/arm/mach-omap2/omap4-common.c | 11 ++--
arch/arm/mach-realview/core.c | 3 -
arch/arm/mach-realview/core.h | 1 -
arch/arm/mach-realview/include/mach/entry-macro.S | 5 --
arch/arm/mach-realview/platsmp.c | 2 +-
arch/arm/mach-realview/realview_eb.c | 14 ++---
arch/arm/mach-realview/realview_pb1176.c | 11 ++--
arch/arm/mach-realview/realview_pb11mp.c | 10 ++--
arch/arm/mach-realview/realview_pba8.c | 6 +-
arch/arm/mach-realview/realview_pbx.c | 13 ++---
arch/arm/mach-s5pv310/cpu.c | 6 +--
arch/arm/mach-s5pv310/include/mach/smp.h | 2 -
arch/arm/mach-s5pv310/platsmp.c | 2 +-
arch/arm/mach-tegra/include/mach/entry-macro.S | 2 +-
arch/arm/mach-tegra/irq.c | 4 +-
arch/arm/mach-tegra/platsmp.c | 2 +-
arch/arm/mach-ux500/cpu.c | 4 +-
arch/arm/mach-ux500/include/mach/entry-macro.S | 1 +
arch/arm/mach-ux500/platsmp.c | 2 +-
arch/arm/mach-vexpress/core.h | 2 -
arch/arm/mach-vexpress/ct-ca9x4.c | 7 +--
arch/arm/mach-vexpress/include/mach/entry-macro.S | 5 --
arch/arm/mach-vexpress/platsmp.c | 2 +-
33 files changed, 100 insertions(+), 113 deletions(-)
next reply other threads:[~2010-12-05 11:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-05 11:33 Russell King - ARM Linux [this message]
2010-12-05 11:34 ` [PATCH 1/5] ARM: GIC: provide a single initialization function for boot CPU Russell King - ARM Linux
2010-12-05 21:45 ` Catalin Marinas
2010-12-05 11:34 ` [PATCH 3/5] ARM: GIC: consolidate gic_cpu_base_addr to common GIC code Russell King - ARM Linux
2010-12-05 22:01 ` Catalin Marinas
2010-12-13 17:23 ` [PATCH 0/5] ARM: GIC: cleanup Abhijeet Dharmapurikar
2010-12-13 17:31 ` Russell King - ARM Linux
2010-12-14 18:11 ` Abhijeet Dharmapurikar
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=20101205113311.GC9138@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=avorontsov@mvista.com \
--cc=bryanh@codeaurora.org \
--cc=ccross@android.com \
--cc=davidb@codeaurora.org \
--cc=dwalker@codeaurora.org \
--cc=kgene.kim@samsung.com \
--cc=konkers@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-tegra@vger.kernel.org \
--cc=olof@lixom.net \
--cc=srinidhi.kasagar@stericsson.com \
--cc=tony@atomide.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 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).