GitHub/MotorolaMobilityLLC/kernel-slsi.git
12 years agoMerge branch 'sched_clock-for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git...
Russell King [Thu, 8 Mar 2012 08:51:13 +0000 (08:51 +0000)]
Merge branch 'sched_clock-for-rmk' of git://git./linux/kernel/git/maz/arm-platforms into devel-stable

12 years agomsm: timer: Support sched_clock()
Stephen Boyd [Wed, 22 Feb 2012 01:39:37 +0000 (01:39 +0000)]
msm: timer: Support sched_clock()

Now that sched_clock is mandatory on ARM it's simple to add
sched_clock support to the MSM timer code. Add it so that we get
more accurate sched_clock output than the jiffies based version
that's provided by default.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
12 years agoARM: 7344/1: pxa: mainstone: add missing include for IRQ_BOARD_START
Rob Herring [Thu, 23 Feb 2012 13:30:51 +0000 (14:30 +0100)]
ARM: 7344/1: pxa: mainstone: add missing include for IRQ_BOARD_START

As part of mach/irqs.h include removal from sparse, mainstone.h was missed.
This fixes the compile of the pcmcia driver.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoMerge branch 'sched_clock-for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git...
Russell King [Sat, 4 Feb 2012 10:32:18 +0000 (10:32 +0000)]
Merge branch 'sched_clock-for-rmk' of git://git./linux/kernel/git/maz/arm-platforms into devel-stable

12 years agoMerge branch 'sparse_irq' of git://sources.calxeda.com/kernel/linux into devel-stable
Russell King [Sat, 4 Feb 2012 10:31:38 +0000 (10:31 +0000)]
Merge branch 'sparse_irq' of git://sources.calxeda.com/kernel/linux into devel-stable

12 years agoARM: Make the sched_clock framework mandatory
Marc Zyngier [Wed, 18 Jan 2012 15:05:11 +0000 (15:05 +0000)]
ARM: Make the sched_clock framework mandatory

All sched_clock() providers have been converted to the sched_clock
framework, which also provides a jiffy based implementation for
the platforms that do not provide a counter.

It is now possible to make the sched_clock framework mandatory,
effectively preventing new platforms to add new sched_clock()
functions, which would be detrimental to the single zImage work.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
12 years agoARM: prima2: convert to common sched_clock() implementation
Marc Zyngier [Mon, 16 Jan 2012 11:44:12 +0000 (11:44 +0000)]
ARM: prima2: convert to common sched_clock() implementation

Prima2 has its own sched_clock() implementation, which gets in the
way of a single zImage. Moving to the common sched_clock framework
makes the code slightly cleaner (the mapping hack in sched_clock()
goes away...).

Acked-by: Barry Song <baohua.song@csr.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
12 years agoARM: davinci: convert to common sched_clock() implementation
Marc Zyngier [Mon, 16 Jan 2012 11:44:12 +0000 (11:44 +0000)]
ARM: davinci: convert to common sched_clock() implementation

Davinci has its own sched_clock() implementation, which gets in the
way of a single zImage. Moving to the common sched_clock framework
makes the code slightly cleaner.

Acked-by: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
12 years agoARM: davinci: time.c: group related header files together
Sekhar Nori [Fri, 23 Dec 2011 17:57:19 +0000 (17:57 +0000)]
ARM: davinci: time.c: group related header files together

Rearrange header files to keep related header files
together.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
12 years agoARM: picoxcell: remove mach/irqs.h
Jamie Iles [Fri, 13 Jan 2012 17:42:45 +0000 (17:42 +0000)]
ARM: picoxcell: remove mach/irqs.h

picoxcell uses SPARSE_IRQ which means we don't need a mach/irqs.h
anymore so kill it off.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: highbank: select SPARSE_IRQ and remove irqs.h
Rob Herring [Tue, 3 Jan 2012 20:44:31 +0000 (14:44 -0600)]
ARM: highbank: select SPARSE_IRQ and remove irqs.h

irqs.h is optional now for SPARSE_IRQ, so select it and remove mach/irqs.h
from highbank.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: only include mach/irqs.h for !SPARSE_IRQ
Rob Herring [Tue, 3 Jan 2012 21:17:23 +0000 (15:17 -0600)]
ARM: only include mach/irqs.h for !SPARSE_IRQ

Make mach/irqs.h optional for SPARSE_IRQ. With this change mach/irqs.h can
be removed by converting platforms over to sparse irq.

Platforms either need to set nr_irqs in their machine desc or all irqchips
used by a platform need to allocate their irq_descs. There cannot be a
mixture. Once this is done, the platforms can select SPARSE_IRQ. shmobile
does the latter, and mmp and pxa do the former.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoMerge branch 'amba' into for-armsoc
Russell King [Thu, 26 Jan 2012 19:59:44 +0000 (19:59 +0000)]
Merge branch 'amba' into for-armsoc

12 years agoARM: amba: samsung: use common amba device initializers
Russell King [Fri, 20 Jan 2012 09:14:40 +0000 (09:14 +0000)]
ARM: amba: samsung: use common amba device initializers

Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: spear: use common amba device initializers
Russell King [Fri, 20 Jan 2012 09:14:14 +0000 (09:14 +0000)]
ARM: amba: spear: use common amba device initializers

Acked-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: nomadik: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:28:51 +0000 (15:28 +0000)]
ARM: amba: nomadik: use common amba device initializers

Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: u300: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:26:38 +0000 (15:26 +0000)]
ARM: amba: u300: use common amba device initializers

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: lpc32xx: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:22:18 +0000 (15:22 +0000)]
ARM: amba: lpc32xx: use common amba device initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: netx: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:20:05 +0000 (15:20 +0000)]
ARM: amba: netx: use common amba device initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: bcmring: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:19:04 +0000 (15:19 +0000)]
ARM: amba: bcmring: use common amba device initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: ep93xx: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:16:40 +0000 (15:16 +0000)]
ARM: amba: ep93xx: use common amba device initializers

Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: omap2: use common amba device initializers
Russell King [Sun, 18 Dec 2011 15:13:47 +0000 (15:13 +0000)]
ARM: amba: omap2: use common amba device initializers

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: integrator: use common amba device initializers
Russell King [Sun, 18 Dec 2011 14:50:51 +0000 (14:50 +0000)]
ARM: amba: integrator: use common amba device initializers

Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: realview: get rid of private platform amba_device initializer
Russell King [Sun, 18 Dec 2011 13:38:49 +0000 (13:38 +0000)]
ARM: amba: realview: get rid of private platform amba_device initializer

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: shmobile: remove NR_IRQS
Rob Herring [Tue, 3 Jan 2012 22:57:33 +0000 (16:57 -0600)]
ARM: shmobile: remove NR_IRQS

Remove NR_IRQS and explicitly include mach/irqs.h as needed. shmobile
properly allocates irq_descs for each irqchip, so setting .nr_irqs for
each machine is not needed.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: pxa: remove NR_IRQS
Rob Herring [Tue, 3 Jan 2012 22:53:48 +0000 (16:53 -0600)]
ARM: pxa: remove NR_IRQS

Remove NR_IRQS and add a per machine .nr_irqs setting.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: mmp: remove NR_IRQS
Rob Herring [Tue, 3 Jan 2012 22:50:40 +0000 (16:50 -0600)]
ARM: mmp: remove NR_IRQS

Remove NR_IRQS and add a per machine .nr_irqs setting. Clean-up namespace
replacing usage of IRQ_BOARD_START with MMP_NR_IRQS.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agosh: intc: remove dependency on NR_IRQS
Rob Herring [Tue, 17 Jan 2012 19:10:25 +0000 (13:10 -0600)]
sh: intc: remove dependency on NR_IRQS

SH intc has a compile time dependency on NR_IRQS. Make this dependency a
local define so that shmobile (and ARM in general) can have run-time
NR_IRQS setting.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agosh: intc: unify evt2irq/irq2evt macros for sh and arm
Rob Herring [Tue, 17 Jan 2012 17:20:23 +0000 (11:20 -0600)]
sh: intc: unify evt2irq/irq2evt macros for sh and arm

Move evt2irq and irq2evt macros definitions out of sh and arm includes
into a common location.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: it8152: explicitly include mach/irqs.h
Rob Herring [Tue, 3 Jan 2012 21:52:42 +0000 (15:52 -0600)]
ARM: it8152: explicitly include mach/irqs.h

In preparation to make mach/irqs.h optional, directly include mach/irq.h
to get IRQ_BOARD_START.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: mc146818rtc: remove unnecessary include of mach/irqs.h
Rob Herring [Tue, 3 Jan 2012 20:55:24 +0000 (14:55 -0600)]
ARM: mc146818rtc: remove unnecessary include of mach/irqs.h

The include of mach/irqs.h isn't needed, so remove it. Compiled CMOS rtc
driver. Add a check to make sure nothing depends on RTC_IRQ.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoARM: remove mc146818rtc.h from time.c
Rob Herring [Sun, 15 Jan 2012 23:05:56 +0000 (17:05 -0600)]
ARM: remove mc146818rtc.h from time.c

mc146818rtc.h is not needed in time.c, so remove it.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agogpio: pxa: explicitly include mach/irqs.h
Rob Herring [Tue, 3 Jan 2012 21:52:42 +0000 (15:52 -0600)]
gpio: pxa: explicitly include mach/irqs.h

In preparation to make mach/irqs.h optional and remove from asm/irq.h,
directly include mach/irq.h to get MMP_GPIO_TO_IRQ and PXA_GPIO_TO_IRQ.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agosound: pxa2xx-ac97: include mach/irqs.h directly
Rob Herring [Tue, 3 Jan 2012 23:10:17 +0000 (17:10 -0600)]
sound: pxa2xx-ac97: include mach/irqs.h directly

In preparation of removing mach/irqs.h include from asm/irq.h, include
mach/irqs.h directly.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
12 years agoirq: make SPARSE_IRQ an optionally hidden option
Rob Herring [Thu, 26 Jan 2012 02:02:40 +0000 (20:02 -0600)]
irq: make SPARSE_IRQ an optionally hidden option

On ARM, we don't want SPARSE_IRQ to be a user visible option. Make
SPARSE_IRQ visible based on MAY_HAVE_SPARSE_IRQ instead of depending
on HAVE_SPARSE_IRQ.

With this, SPARSE_IRQ is not visible on C6X and ARM.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Mark Salter <msalter@redhat.com>
Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-c6x-dev@linux-c6x.org
Cc: linuxppc-dev@lists.ozlabs.org
Cc: linux-sh@vger.kernel.org
12 years agoARM: amba: versatile: get rid of private platform amba_device initializer
Russell King [Sun, 18 Dec 2011 12:21:09 +0000 (12:21 +0000)]
ARM: amba: versatile: get rid of private platform amba_device initializer

Tested-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: vexpress: get rid of private platform amba_device initializer
Russell King [Sun, 18 Dec 2011 12:07:09 +0000 (12:07 +0000)]
ARM: amba: vexpress: get rid of private platform amba_device initializer

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: provide common initializers for static amba devices
Russell King [Sun, 18 Dec 2011 12:06:25 +0000 (12:06 +0000)]
ARM: amba: provide common initializers for static amba devices

Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: make use of -1 IRQs warn
Russell King [Sun, 18 Dec 2011 11:43:56 +0000 (11:43 +0000)]
ARM: amba: make use of -1 IRQs warn

Make the core warn about the use of -1 (NO_IRQ)

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: u300: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:42:44 +0000 (11:42 +0000)]
ARM: amba: u300: get rid of NO_IRQ initializers

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: spear: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:42:30 +0000 (11:42 +0000)]
ARM: amba: spear: get rid of NO_IRQ initializers

Acked-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: netx: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:41:54 +0000 (11:41 +0000)]
ARM: amba: netx: get rid of NO_IRQ initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: nomadik: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:41:38 +0000 (11:41 +0000)]
ARM: amba: nomadik: get rid of NO_IRQ initializers

Acked-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: mxs: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:41:22 +0000 (11:41 +0000)]
ARM: amba: mxs: get rid of NO_IRQ initializers

Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: lpc32xx: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:41:06 +0000 (11:41 +0000)]
ARM: amba: lpc32xx: get rid of NO_IRQ initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: integrator/realview/versatile/vexpress: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:40:46 +0000 (11:40 +0000)]
ARM: amba: integrator/realview/versatile/vexpress: get rid of NO_IRQ initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: samsung: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:42:14 +0000 (11:42 +0000)]
ARM: amba: samsung: get rid of NO_IRQ initializers

Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: get rid of NO_IRQ initializers
Russell King [Sun, 18 Dec 2011 11:39:37 +0000 (11:39 +0000)]
ARM: amba: get rid of NO_IRQ initializers

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: ux500: get rid of NO_IRQ
Russell King [Sun, 18 Dec 2011 11:33:59 +0000 (11:33 +0000)]
ARM: amba: ux500: get rid of NO_IRQ

irq 0 now means no irq, so get rid of this unnecessary initializer.

Acked-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: make irq 0 invalid
Russell King [Sun, 18 Dec 2011 11:31:51 +0000 (11:31 +0000)]
ARM: amba: make irq 0 invalid

Fix core bus and MMCI such that irq 0 means that there is no IRQ
attached.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: mxs: convert to use amba_device_alloc
Russell King [Sun, 18 Dec 2011 11:23:25 +0000 (11:23 +0000)]
ARM: amba: mxs: convert to use amba_device_alloc

Convert MXS to use the new amba_device_alloc APIs.

Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: integrator: convert to use amba_device_alloc
Russell King [Sun, 18 Dec 2011 11:20:37 +0000 (11:20 +0000)]
ARM: amba: integrator: convert to use amba_device_alloc

Convert Integrator IM/PD-1 to use the new amba_device_alloc APIs.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: ux500: convert to use amba_device_alloc
Russell King [Sun, 18 Dec 2011 11:16:59 +0000 (11:16 +0000)]
ARM: amba: ux500: convert to use amba_device_alloc

Convert ux500 to use the new amba_device_alloc APIs.

Acked-by: srinidhi kasagar <srinidhi.kasagar@stericsson.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: of: convert to use amba_device_alloc
Russell King [Sun, 18 Dec 2011 11:45:17 +0000 (11:45 +0000)]
ARM: amba: of: convert to use amba_device_alloc

Convert DT code to use the new amba_device_alloc APIs.

Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: amba: add amba_device allocation/add/put functions
Russell King [Sun, 18 Dec 2011 11:07:47 +0000 (11:07 +0000)]
ARM: amba: add amba_device allocation/add/put functions

Add functions to allocate and initialize AMBA device structures, and
add them to the Linux device manager.  This allows us to kill this
type of operation from individual platforms, moving it to core code.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoARM: 7300/1: realview: fix definition of GPIO0 interrupt on PB1176 to match TRM
Will Deacon [Wed, 25 Jan 2012 10:36:33 +0000 (11:36 +0100)]
ARM: 7300/1: realview: fix definition of GPIO0 interrupt on PB1176 to match TRM

Currently, -1 is used as the GPIO0 interrupt on realview PB1176 and an
AMBA device is registered with this parameter. With the pending NO_IRQ
cleanup, this will lead to a warning at boot time, since -1 is obviously
broken.

This patch updates the interrupt used for GPIO0 to match that specified
by the TRM. Unfortunately, it's not clear how to trigger this interrupt
so we trust that the documentation is correct.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoMerge branches 'debug' and 'idle' into for-armsoc
Russell King [Mon, 23 Jan 2012 11:59:04 +0000 (11:59 +0000)]
Merge branches 'debug' and 'idle' into for-armsoc

12 years agoARM: big removal of now unused arch_idle()
Nicolas Pitre [Mon, 19 Dec 2011 08:29:16 +0000 (03:29 -0500)]
ARM: big removal of now unused arch_idle()

When this is the only content remaining in mach/system.h then the
whole file is removed.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Acked-by: David Brown <davidb@codeaurora.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
12 years agoARM: substitute arch_idle()
Nicolas Pitre [Mon, 19 Dec 2011 08:03:58 +0000 (03:03 -0500)]
ARM: substitute arch_idle()

Now that all implementations of arch_idle() are equivalent to cpu_do_idle()
we can just use the later directly and stop including mach/system.h.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
12 years agoARM: mach-tegra: properly disable CPU idle call
Nicolas Pitre [Wed, 3 Aug 2011 16:21:16 +0000 (12:21 -0400)]
ARM: mach-tegra: properly disable CPU idle call

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Stephen Warren <swarren@nvidia.com>
12 years agoARM: mach-s3c64xx: use standard arch_idle() implementation
Nicolas Pitre [Wed, 3 Aug 2011 16:21:16 +0000 (12:21 -0400)]
ARM: mach-s3c64xx: use standard arch_idle() implementation

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
Tested-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
12 years agoARM: mach-w90x900: properly disable CPU idle call
Nicolas Pitre [Wed, 3 Aug 2011 16:21:16 +0000 (12:21 -0400)]
ARM: mach-w90x900: properly disable CPU idle call

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-shark: properly disable CPU idle call
Nicolas Pitre [Wed, 3 Aug 2011 16:00:02 +0000 (12:00 -0400)]
ARM: mach-shark: properly disable CPU idle call

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-ixp4xx: properly disable CPU idle call
Nicolas Pitre [Wed, 3 Aug 2011 11:25:39 +0000 (07:25 -0400)]
ARM: mach-ixp4xx: properly disable CPU idle call

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-ixp23xx: properly disable CPU idle call
Nicolas Pitre [Wed, 3 Aug 2011 11:06:05 +0000 (07:06 -0400)]
ARM: mach-ixp23xx: properly disable CPU idle call

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-msm: hook special idle handlers to arm_pm_idle
Nicolas Pitre [Wed, 3 Aug 2011 15:34:59 +0000 (11:34 -0400)]
ARM: mach-msm: hook special idle handlers to arm_pm_idle

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: David Brown <davidb@codeaurora.org>
12 years agoARM: plat-mxc: hook special idle handlers to arm_pm_idle
Nicolas Pitre [Wed, 3 Aug 2011 15:34:59 +0000 (11:34 -0400)]
ARM: plat-mxc: hook special idle handlers to arm_pm_idle

... and remove redundant include of <mach/system.h>.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: s3c24xx: move special idle code to out of line
Nicolas Pitre [Wed, 3 Aug 2011 15:34:59 +0000 (11:34 -0400)]
ARM: s3c24xx: move special idle code to out of line

... and hook it to arm_pm_idle.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-h720x: move special idle code out of line
Nicolas Pitre [Wed, 3 Aug 2011 10:55:31 +0000 (06:55 -0400)]
ARM: mach-h720x: move special idle code out of line

... and hook it to arm_pm_idle.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-gemini: move special idle code out of line
Nicolas Pitre [Wed, 3 Aug 2011 10:29:42 +0000 (06:29 -0400)]
ARM: mach-gemini: move special idle code out of line

... and hook it to arm_pm_idle.

Signed-off-by: nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-ebsa110: move special idle code out of line
Nicolas Pitre [Tue, 2 Aug 2011 16:52:48 +0000 (12:52 -0400)]
ARM: mach-ebsa110: move special idle code out of line

... and hook it to arm_pm_idle.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-clps711x: move special idle code out of line
Nicolas Pitre [Tue, 2 Aug 2011 16:22:48 +0000 (12:22 -0400)]
ARM: mach-clps711x: move special idle code out of line

... and hook it to arm_pm_idle.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-at91: move special idle code out of line
Nicolas Pitre [Tue, 2 Aug 2011 14:21:36 +0000 (10:21 -0400)]
ARM: mach-at91: move special idle code out of line

... and hook it to arm_pm_idle.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
12 years agoARM: mach-exynos: use standard arch_idle()
Nicolas Pitre [Sat, 17 Dec 2011 04:13:28 +0000 (23:13 -0500)]
ARM: mach-exynos: use standard arch_idle()

This is equivalent and more similar to existing architectures.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
12 years agoARM: mach-s5p64x0: move idle handler from pm_idle to arm_pm_idle
Nicolas Pitre [Wed, 4 Jan 2012 22:24:25 +0000 (17:24 -0500)]
ARM: mach-s5p64x0: move idle handler from pm_idle to arm_pm_idle

Signed-off-by: Nicolas Pitre <nico@linaro.org>
12 years agoARM: mach-s5pc100: use standard arch_idle()
Nicolas Pitre [Sat, 17 Dec 2011 04:13:28 +0000 (23:13 -0500)]
ARM: mach-s5pc100: use standard arch_idle()

This is equivalent and more similar to existing architectures.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
12 years agoARM: mach-s5pv210: use standard arch_idle()
Nicolas Pitre [Sat, 17 Dec 2011 04:13:28 +0000 (23:13 -0500)]
ARM: mach-s5pv210: use standard arch_idle()

This is equivalent and more similar to existing architectures.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
12 years agoARM: OMAP: convert idle handlers from pm_idle to arm_pm_idle
Nicolas Pitre [Wed, 4 Jan 2012 21:27:48 +0000 (16:27 -0500)]
ARM: OMAP: convert idle handlers from pm_idle to arm_pm_idle

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Tony Lindgren <tony@atomide.com>
12 years agoARM: clean up idle handlers
Nicolas Pitre [Mon, 1 Aug 2011 21:25:06 +0000 (17:25 -0400)]
ARM: clean up idle handlers

Let's factor out the need_resched() check instead of having it duplicated
in every pm_idle implementations to avoid inconsistencies (omap2_pm_idle
is missing it already).

The forceful re-enablement of IRQs after pm_idle has returned can go.
The warning certainly doesn't trigger for existing users.

To get rid of the pm_idle calling convention oddity, let's introduce
arm_pm_idle() allowing for the local_irq_enable() to be factored out
from SOC specific implementations. The default pm_idle function becomes
a wrapper for arm_pm_idle and it takes care of enabling IRQs closer to
where they are initially disabled.

And finally move the comment explaining the reason for that turning off
of IRQs to a more proper location.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-and-tested-by: Jamie Iles <jamie@jamieiles.com>
12 years agoARM: OMAP1: Fix pm_idle during suspend
Nicolas Pitre [Mon, 19 Dec 2011 17:11:11 +0000 (09:11 -0800)]
ARM: OMAP1: Fix pm_idle during suspend

Commit 9ccdac3662dbf3c75e8f8851a214bdf7d365a4bd ([ARM] idle:
clean up pm_idle calling, obey hlt_counter) removed a check
for NULL pm_idle.

Replace the NULL assignment in the OMAP1 code with disable_hlt()
to be in sync with the core code and restore the intended behavior.

Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
12 years agoARM: debug: arrange Kconfig options more logically
Russell King [Wed, 23 Nov 2011 17:44:05 +0000 (17:44 +0000)]
ARM: debug: arrange Kconfig options more logically

Arrange the Kconfig options in rough alphabetical order, and place the
default 'none' and 'icedcc' options at the end.  This prefers the
platform specific debug option rather than the 'none' option, which is
what we actually want.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
12 years agoLinux 3.3-rc1
Linus Torvalds [Thu, 19 Jan 2012 23:04:48 +0000 (15:04 -0800)]
Linux 3.3-rc1

12 years agoMerge branches 'sched-urgent-for-linus', 'perf-urgent-for-linus' and 'x86-urgent...
Linus Torvalds [Thu, 19 Jan 2012 22:53:06 +0000 (14:53 -0800)]
Merge branches 'sched-urgent-for-linus', 'perf-urgent-for-linus' and 'x86-urgent-for-linus' of git://git./linux/kernel/git/tip/tip

* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  sched/accounting, proc: Fix /proc/stat interrupts sum

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  tracepoints/module: Fix disabling tracepoints with taint CRAP or OOT
  x86/kprobes: Add arch/x86/tools/insn_sanity to .gitignore
  x86/kprobes: Fix typo transferred from Intel manual

* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits
  x86, tsc: Fix SMI induced variation in quick_pit_calibrate()
  x86, opcode: ANDN and Group 17 in x86-opcode-map.txt
  x86/kconfig: Move the ZONE_DMA entry under a menu
  x86/UV2: Add accounting for BAU strong nacks
  x86/UV2: Ack BAU interrupt earlier
  x86/UV2: Remove stale no-resources test for UV2 BAU
  x86/UV2: Work around BAU bug
  x86/UV2: Fix BAU destination timeout initialization
  x86/UV2: Fix new UV2 hardware by using native UV2 broadcast mode
  x86: Get rid of dubious one-bit signed bitfield

12 years agoMerge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6
Linus Torvalds [Thu, 19 Jan 2012 22:52:03 +0000 (14:52 -0800)]
Merge tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6

gpio bug fixes for v3.3

* tag 'gpio-for-linus' of git://git.secretlab.ca/git/linux-2.6:
  gpio: tps65910: Use correct offset for gpio initialization
  gpio/it8761e: Restrict it8761e gpio driver to x86.
  gpio-ml-ioh: cleanup __iomem annotation usage
  gpio-ml-ioh: cleanup NULL pointer checking
  gpio-pch: cleanup __iomem annotation usage
  gpio-pch: cleanup NULL pointer checking

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Linus Torvalds [Thu, 19 Jan 2012 22:49:16 +0000 (14:49 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/viro/vfs

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
  qnx4: don't leak ->BitMap on late failure exits
  qnx4: reduce the insane nesting in qnx4_checkroot()
  qnx4: di_fname is an array, for crying out loud...
  vfs: remove printk from set_nlink()
  wake up s_wait_unfrozen when ->freeze_fs fails

12 years agox86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits
H. Peter Anvin [Thu, 19 Jan 2012 20:41:25 +0000 (12:41 -0800)]
x86, syscall: Need __ARCH_WANT_SYS_IPC for 32 bits

In checkin

  303395ac3bf3 x86: Generate system call tables and unistd_*.h from tables

the feature macros in <asm/unistd.h> were unified between 32 and 64
bits.  Unfortunately 32 bits requires __ARCH_WANT_SYS_IPC and this was
inadvertently dropped.

Reported-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Link: http://lkml.kernel.org/r/CALLzPKbeXN5gdngo8uYYU8mAow=XhrwBFBhKfG811f37BubQOg@mail.gmail.com
12 years agoMerge remote-tracking branch 'linus/master' into x86/urgent
H. Peter Anvin [Thu, 19 Jan 2012 20:56:50 +0000 (12:56 -0800)]
Merge remote-tracking branch 'linus/master' into x86/urgent

12 years agoMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
Linus Torvalds [Thu, 19 Jan 2012 19:46:08 +0000 (11:46 -0800)]
Merge branch 'for-linus' of git://git./linux/kernel/git/jmorris/linux-security

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
  KEYS: Permit key_serial() to be called with a const key pointer
  keys: fix user_defined key sparse messages
  ima: fix cred sparse warning
  MPILIB: Add a missing ENOMEM check

12 years agoqnx4: don't leak ->BitMap on late failure exits
Al Viro [Thu, 19 Jan 2012 18:54:36 +0000 (13:54 -0500)]
qnx4: don't leak ->BitMap on late failure exits

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoqnx4: reduce the insane nesting in qnx4_checkroot()
Al Viro [Thu, 19 Jan 2012 18:40:57 +0000 (13:40 -0500)]
qnx4: reduce the insane nesting in qnx4_checkroot()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoqnx4: di_fname is an array, for crying out loud...
Al Viro [Thu, 19 Jan 2012 18:19:42 +0000 (13:19 -0500)]
qnx4: di_fname is an array, for crying out loud...

(struct qnx4_inode_entry *)(bh->b_data + some_offset)->di_fname
is not going to be NULL, TYVM...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
12 years agoKEYS: Permit key_serial() to be called with a const key pointer
David Howells [Wed, 18 Jan 2012 10:04:29 +0000 (10:04 +0000)]
KEYS: Permit key_serial() to be called with a const key pointer

Permit key_serial() to be called with a const key pointer.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
12 years agokeys: fix user_defined key sparse messages
Mimi Zohar [Wed, 18 Jan 2012 10:03:14 +0000 (10:03 +0000)]
keys: fix user_defined key sparse messages

Replace the rcu_assign_pointer() calls with rcu_assign_keypointer().

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
12 years agoima: fix cred sparse warning
Mimi Zohar [Wed, 18 Jan 2012 03:11:28 +0000 (22:11 -0500)]
ima: fix cred sparse warning

Fix ima_policy.c sparse "warning: dereference of noderef expression"
message, by accessing cred->uid using current_cred().

Changelog v1:
- Change __cred to just cred (based on David Howell's comment)

Signed-off-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
12 years agouml: fix compile for x86-64
Linus Torvalds [Thu, 19 Jan 2012 03:26:11 +0000 (19:26 -0800)]
uml: fix compile for x86-64

Randy Dunlap reports that we get

  arch/x86/um/shared/sysdep/ptrace.h:7:20: error: redefinition of 'regs_return_value'
  arch/x86/um/shared/sysdep/ptrace.h:7:20: note: previous definition of 'regs_return_value' was here

when compiling UML for x86-64.

Stephen Rothwell root-caused it and says:

 "Caused by commit d7e7528bcd45 ("Audit: push audit success and retcode
  into arch ptrace.h") (another patch that was never in linux-next :-().

  This file now needs protection against double inclusion."

so let's do as the man says.

Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Analyzed-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
12 years agoMPILIB: Add a missing ENOMEM check
David Howells [Wed, 18 Jan 2012 10:03:54 +0000 (10:03 +0000)]
MPILIB: Add a missing ENOMEM check

Add a missing ENOMEM check.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
12 years agoMerge branch 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab...
Linus Torvalds [Thu, 19 Jan 2012 00:29:42 +0000 (16:29 -0800)]
Merge branch 'for-next-merge' of git://git./linux/kernel/git/nab/target-pending

* 'for-next-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending:
  ib_srpt: Initial SRP Target merge for v3.3-rc1

12 years agoMerge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
Linus Torvalds [Wed, 18 Jan 2012 23:59:18 +0000 (15:59 -0800)]
Merge branch 'for-next' of git://git./linux/kernel/git/nab/target-pending

* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (26 commits)
  target: Set additional sense length field in sense data
  target: Remove legacy device status check from transport_execute_tasks
  target: Remove __transport_execute_tasks() for each processing context
  target: Remove extra se_device->execute_task_lock access in fast path
  target: Drop se_device TCQ queue_depth usage from I/O path
  target: Fix possible NULL pointer with __transport_execute_tasks
  target: Remove TFO->check_release_cmd() fabric API caller
  tcm_fc: Convert ft_send_work to use target_submit_cmd
  target: Add target_submit_cmd() for process context fabric submission
  target: Make target_put_sess_cmd use target_release_cmd_kref
  target: Set response format in INQUIRY response
  target: tcm_mod_builder: small fixups
  Documentation/target: Fix tcm_mod_builder.py build breakage
  target: remove overagressive ____cacheline_aligned annoations
  tcm_loop: bump max_sectors
  target/configs: remove trailing newline from udev_path and alias
  iscsi-target: fix chap identifier simple_strtoul usage
  target: remove useless casts
  target: simplify target_check_cdb_and_preempt
  target: Move core_scsi3_check_cdb_abort_and_preempt
  ...

12 years agoMerge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
Linus Torvalds [Wed, 18 Jan 2012 23:51:48 +0000 (15:51 -0800)]
Merge branch 'release' of git://git./linux/kernel/git/lenb/linux

This includes initial support for the recently published ACPI 5.0 spec.
In particular, support for the "hardware-reduced" bit that eliminates
the dependency on legacy hardware.

APEI has patches resulting from testing on real hardware.

Plus other random fixes.

* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux: (52 commits)
  acpi/apei/einj: Add extensions to EINJ from rev 5.0 of acpi spec
  intel_idle: Split up and provide per CPU initialization func
  ACPI processor: Remove unneeded variable passed by acpi_processor_hotadd_init V2
  ACPI processor: Remove unneeded cpuidle_unregister_driver call
  intel idle: Make idle driver more robust
  intel_idle: Fix a cast to pointer from integer of different size warning in intel_idle
  ACPI: kernel-parameters.txt : Add intel_idle.max_cstate
  intel_idle: remove redundant local_irq_disable() call
  ACPI processor: Fix error path, also remove sysdev link
  ACPI: processor: fix acpi_get_cpuid for UP processor
  intel_idle: fix API misuse
  ACPI APEI: Convert atomicio routines
  ACPI: Export interfaces for ioremapping/iounmapping ACPI registers
  ACPI: Fix possible alignment issues with GAS 'address' references
  ACPI, ia64: Use SRAT table rev to use 8bit or 16/32bit PXM fields (ia64)
  ACPI, x86: Use SRAT table rev to use 8bit or 32bit PXM fields (x86/x86-64)
  ACPI: Store SRAT table revision
  ACPI, APEI, Resolve false conflict between ACPI NVS and APEI
  ACPI, Record ACPI NVS regions
  ACPI, APEI, EINJ, Refine the fix of resource conflict
  ...

12 years agotpm: fix (ACPI S3) suspend regression
Stefan Berger [Wed, 18 Jan 2012 03:07:30 +0000 (22:07 -0500)]
tpm: fix (ACPI S3) suspend regression

This patch fixes an (ACPI S3) suspend regression introduced in commit
68d6e6713fcb ("tpm: Introduce function to poll for result of self test")
and occurring with an Infineon TPM and tpm_tis and tpm_infineon drivers
active.

The suspend problem occurred if the TPM was disabled and/or deactivated
and therefore the TPM_PCRRead checking the result of the (asynchronous)
self test returned an error code which then caused the tpm_tis driver to
become inactive and this then seemed to have negatively influenced the
suspend support by the tpm_infineon driver...  Besides that the tpm_tis
drive may stay active even if the TPM is disabled and/or deactivated.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Tested-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>