Rob Herring
5116b1defa
of: remove empty arch prom.h headers
...
Now that prom.h is optional, all the empty prom.h headers can be removed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Will Deacon <will.deacon@arm.com >
Cc: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: Chris Zankel <chris@zankel.net >
Cc: Max Filippov <jcmvbkbc@gmail.com >
2013-10-09 20:04:13 -05:00
Rob Herring
26a2056eb2
powerpc: add explicit OF includes
...
When removing prom.h include by of.h, several OF headers will no longer
be implicitly included. Add explicit includes of of_*.h as needed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Anatolij Gustschin <agust@denx.de >
Cc: Kumar Gala <galak@kernel.crashing.org >
Cc: Olof Johansson <olof@lixom.net >
Cc: linuxppc-dev@lists.ozlabs.org
2013-10-09 20:04:11 -05:00
Rob Herring
5c19c5c6d4
powerpc: clean-up include ordering in prom.h
...
Now that the core OF headers don't depend on prom.h, rearrange the
includes. There are still lots of implicit includes in the powerpc tree,
so the includes of OF headers are still necessary.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 20:04:11 -05:00
Rob Herring
d0dfa16a60
of: move of_translate_dma_address to of_address.h
...
of_translate_dma_address is implemented in common code, so move the
declaration there too.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: linuxppc-dev@lists.ozlabs.org
2013-10-09 20:04:10 -05:00
Rob Herring
4acf4b9cd4
of: move of_address_to_resource and of_iomap declarations from sparc
...
Move of_address_to_resource and of_iomap declarations to common code. These
only differ on sparc, but the declarations are the same and don't need to
be in arch header.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: sparclinux@vger.kernel.org
2013-10-09 20:04:09 -05:00
Rob Herring
32df8dca50
of: remove HAVE_ARCH_DEVTREE_FIXUPS
...
HAVE_ARCH_DEVTREE_FIXUPS appears to always be needed except for sparc,
but it is only used for /proc/device-teee and sparc does not enable
/proc/device-tree. So this option is redundant. Remove the option and
always enable it. This has the side effect of fixing /proc/device-tree
on arches such as arm64 which failed to define this option.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: x86@kernel.org
Cc: Chris Zankel <chris@zankel.net >
Cc: Max Filippov <jcmvbkbc@gmail.com >
2013-10-09 20:04:08 -05:00
Rob Herring
0c3f061c19
of: implement of_node_to_nid as a weak function
...
Implement of_node_to_nid as weak function to remove the dependency on
asm/prom.h. This is in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 20:04:07 -05:00
Rob Herring
25ff79443c
of: implement pci_address_to_pio as weak function
...
Implement pci_address_to_pio as weak function to remove the dependency on
asm/prom.h. This is in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: x86@kernel.org
Cc: Grant Likely <grant.likely@linaro.org >
2013-10-09 20:04:06 -05:00
Rob Herring
ba904f0649
x86: add necessary includes for prom.h
...
Once prom.h is no longer implicitly included, we need to include setup.h
to get COMMAND_LINE_SIZE.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: x86@kernel.org
2013-10-09 20:04:06 -05:00
Rob Herring
089a49b68c
mips: add explicit includes of prom.h
...
In preparation of removing prom.h include by of.h, add explicit includes.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: linux-mips@linux-mips.org
2013-10-09 20:04:05 -05:00
Rob Herring
5c9f303e99
microblaze: clean-up prom.h implicit includes
...
While powerpc is a mess of implicit includes by prom.h, microblaze just
copied this and is easily fixed. Add the necessary explicit includes and
remove unnecessary includes and other parts from prom.h
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Michal Simek <monstr@monstr.eu >
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: netdev@vger.kernel.org
2013-10-09 20:04:03 -05:00
Rob Herring
7b009939af
metag: move setup_machine_fdt declaration from prom.h
...
Move setup_machine_fdt out of prom.h and into asm/setup.h in preparation
to remove prom.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: linux-metag@vger.kernel.org
2013-10-09 20:04:03 -05:00
Rob Herring
0b81430590
hexagon: remove unnecessary prom.h includes
...
Hexagon does not have a prom.h header, so it is probably broken with
CONFIG_OF enabled. In any case, remove unnecessary prom.h include in
preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Richard Kuo <rkuo@codeaurora.org >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: linux-hexagon@vger.kernel.org
2013-10-09 20:04:02 -05:00
Rob Herring
be5973117b
arc: remove unnecessary prom.h includes
...
Remove unnecessary prom.h includes in preparation to remove prom.h.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 20:04:01 -05:00
Rob Herring
e2d1c994f7
arm64: remove unnecessary prom.h include
...
Remove unnecessary prom.h include in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Will Deacon <will.deacon@arm.com >
2013-10-09 20:04:00 -05:00
Rob Herring
c0c376687b
ARM: keystone: remove unnecessary prom.h include
...
Remove unnecessary prom.h include in preparation to make prom.h optional.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com >
2013-10-09 20:04:00 -05:00
Rob Herring
97e7f45543
mips: use common of_flat_dt_get_machine_name
...
Convert mips to use the common of_flat_dt_get_machine_name function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: linux-mips@linux-mips.org
Acked-by: John Crispin <blogic@openwrt.org >
2013-10-09 20:03:57 -05:00
Rob Herring
986c494b3c
metag: use common of_flat_dt_match_machine
...
Convert metag to use the common of_flat_dt_get_machine_name function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
[james.hogan: fix missing arch_get_next_mach and const mismatch]
Reported-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: James Hogan <james.hogan@imgtec.com >
2013-10-09 20:03:57 -05:00
Rob Herring
f2b99bccae
arm64: use common of_flat_dt_get_machine_name
...
Convert arm64 to use the common of_flat_dt_get_machine_name function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Cc: Will Deacon <will.deacon@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
2013-10-09 20:03:56 -05:00
Rob Herring
6d67a9f672
arm: use common of_flat_dt_match_machine
...
Convert arm to use the common of_flat_dt_match_machine function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: linux-arm-kernel@lists.infradead.org
2013-10-09 20:03:55 -05:00
Rob Herring
880beb8807
arc: use common of_flat_dt_match_machine
...
Convert arc to use the common of_flat_dt_match_machine function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
2013-10-09 20:03:55 -05:00
Rob Herring
9b7d9f27f6
openrisc: remove unnecessary prom.c includes
...
It appears openrisc prom.c was just copied from another arch with a
bunch of unnecessary includes. Remove all the unecessary ones.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: linux@lists.openrisc.net
2013-10-09 11:39:01 -05:00
Rob Herring
29eb45a9ab
of: remove early_init_dt_setup_initrd_arch
...
All arches do essentially the same thing now for
early_init_dt_setup_initrd_arch, so it can now be removed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: James Hogan <james.hogan@imgtec.com >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: Paul Mackerras <paulus@samba.org >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: x86@kernel.org
Cc: Chris Zankel <chris@zankel.net >
Cc: Max Filippov <jcmvbkbc@gmail.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:39:01 -05:00
Rob Herring
ec2eaa73b3
arm64: set initrd_start/initrd_end for fdt scan
...
In order to unify the initrd scanning for DT across architectures, make
arm64 use initrd_start and initrd_end instead of the physical addresses.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Cc: Will Deacon <will.deacon@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
2013-10-09 11:39:00 -05:00
Rob Herring
65939301ac
arm: set initrd_start/initrd_end for fdt scan
...
In order to unify the initrd scanning for DT across architectures, make
arm set initrd_start and initrd_end instead of the physical addresses.
This is aligned with all other architectures.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: linux-arm-kernel@lists.infradead.org
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:38:59 -05:00
Rob Herring
068f6310b9
of: create default early_init_dt_add_memory_arch
...
Create a weak version of early_init_dt_add_memory_arch which uses
memblock. This will unify all architectures except ones with custom
memory bank structs.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Cc: Will Deacon <will.deacon@arm.com >
Cc: Michal Simek <monstr@monstr.eu >
Cc: Jonas Bonn <jonas@southpole.se >
Acked-by: Grant Likely <grant.likely@linaro.org >
Cc: linux-arm-kernel@lists.infradead.org
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: linux@lists.openrisc.net
Cc: devicetree@vger.kernel.org
2013-10-09 11:38:19 -05:00
Rob Herring
7745fc1fec
xtensa: use early_init_dt_scan
...
Convert xtensa to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Max Filippov <jcmvbkbc@gmail.com >
Cc: Chris Zankel <chris@zankel.net >
Cc: linux-xtensa@linux-xtensa.org
2013-10-09 11:38:15 -05:00
Rob Herring
e94353890a
openrisc: use early_init_dt_scan
...
Convert openrisc to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: linux@lists.openrisc.net
2013-10-09 11:38:15 -05:00
Rob Herring
f75813c012
mips: use early_init_dt_scan
...
Convert mips to use new early_init_dt_scan function.
Remove early_init_dt_scan_memory_arch
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Ralf Baechle <ralf@linux-mips.org >
Cc: linux-mips@linux-mips.org
Acked-by: John Crispin <blogic@openwrt.org >
2013-10-09 11:38:14 -05:00
Rob Herring
dc0b433526
microblaze: use early_init_dt_scan
...
Convert microblaze to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Tested-by: Michal Simek <monstr@monstr.eu >
Cc: microblaze-uclinux@itee.uq.edu.au
2013-10-09 11:38:13 -05:00
Rob Herring
e5d659935e
metag: use early_init_dt_scan
...
Convert metag to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: James Hogan <james.hogan@imgtec.com >
2013-10-09 11:38:13 -05:00
Rob Herring
a8e44636c6
c6x: use early_init_dt_scan
...
Convert c6x to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: linux-c6x-dev@linux-c6x.org
2013-10-09 11:38:12 -05:00
Rob Herring
d5189cc57b
arm64: use early_init_dt_scan
...
Convert arm64 to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Catalin Marinas <catalin.marinas@arm.com >
Cc: Will Deacon <will.deacon@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
2013-10-09 11:38:11 -05:00
Rob Herring
56dc1f474a
arm: use early_init_dt_scan
...
Convert arm to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Russell King <linux@arm.linux.org.uk >
Cc: linux-arm-kernel@lists.infradead.org
2013-10-09 11:38:10 -05:00
Rob Herring
ad81fcb530
arc: use early_init_dt_scan
...
Convert arc to use new early_init_dt_scan function.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
2013-10-09 11:38:08 -05:00
Rob Herring
08854f4180
metag: use unflatten_and_copy_device_tree
...
Use the common unflatten_and_copy_device_tree to copy the built-in FDT
out of init section.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: James Hogan <james.hogan@imgtec.com >
2013-10-09 11:38:06 -05:00
Rob Herring
3104021c12
xtensa: use unflatten_and_copy_device_tree
...
Use the common unflatten_and_copy_device_tree to copy the built-in FDT
out of init section.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Chris Zankel <chris@zankel.net >
Acked-by: Max Filippov <jcmvbkbc@gmail.com >
Cc: linux-xtensa@linux-xtensa.org
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:38:05 -05:00
Rob Herring
21c561bda1
x86: use unflatten_and_copy_device_tree
...
Use the common unflatten_and_copy_device_tree to copy the built-in FDT
out of init section.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Thomas Gleixner <tglx@linutronix.de >
Cc: Ingo Molnar <mingo@redhat.com >
Cc: "H. Peter Anvin" <hpa@zytor.com >
Cc: x86@kernel.org
2013-10-09 11:38:05 -05:00
Rob Herring
3486892f99
openrisc: use unflatten_and_copy_device_tree
...
Use the common unflatten_and_copy_device_tree to copy the built-in FDT
out of init section. This moves the copy later in the boot, but there
do not appear to be any references to strings in the FDT before the copy.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: linux@lists.openrisc.net
2013-10-09 11:38:04 -05:00
Rob Herring
1efc959e0b
arc: use unflatten_and_copy_device_tree
...
Use the common unflatten_and_copy_device_tree to copy the built-in FDT
out of init section.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Acked-by: Vineet Gupta <vgupta@synopsys.com >
Acked-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:38:03 -05:00
Rob Herring
bbf28b505a
openrisc: use boot_command_line instead of private cmd_line
...
Save some pointless copying of the kernel command line and just use
boot_command_line instead. The DT code already handles CONFIG_CMDLINE,
so a separate copy is not needed.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Cc: Jonas Bonn <jonas@southpole.se >
Cc: linux@lists.openrisc.net
Reviewed-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:38:02 -05:00
Rob Herring
312717f15a
c6x: use boot_command_line instead of private c6x_command_line
...
Save some pointless copying of the kernel command line and just use
boot_command_line instead.
Also remove default_command_line as it is not referenced anywhere, and
the DT code already handles the default command line.
Signed-off-by: Rob Herring <rob.herring@calxeda.com >
Tested-by: Mark Salter <msalter@redhat.com >
Acked-by: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: linux-c6x-dev@linux-c6x.org
Reviewed-by: Grant Likely <grant.likely@linaro.org >
2013-10-09 11:37:27 -05:00
Linus Torvalds
669fc2f0c7
Merge branches 'sched-urgent-for-linus', 'timers-urgent-for-linus' and 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
...
Pull scheduler, timer and x86 fixes from Ingo Molnar:
- A context tracking ARM build and functional fix
- A handful of ARM clocksource/clockevent driver fixes
- An AMD microcode patch level sysfs reporting fixlet
* 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
arm: Fix build error with context tracking calls
* 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
clocksource: em_sti: Set cpu_possible_mask to fix SMP broadcast
clocksource: of: Respect device tree node status
clocksource: exynos_mct: Set IRQ affinity when the CPU goes online
arm: clocksource: mvebu: Use the main timer as clock source from DT
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/microcode/AMD: Fix patch level reporting for family 15h
2013-09-28 14:22:17 -07:00
Linus Torvalds
9b565a8051
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
...
Pull perf fixes from Ingo Molnar:
"A couple of tooling fixlets and a PMU detection printout fix"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf/x86: Fix PMU detection printout when no PMU is detected
perf symbols: Demangle cloned functions
perf machine: Fix path unpopulated in machine__create_modules()
perf tools: Explicitly add libdl dependency
perf probe: Fix probing symbols with optimization suffix
perf trace: Add mmap2 handler
perf kmem: Make it work again on non NUMA machines
2013-09-28 14:21:13 -07:00
Linus Torvalds
aeebc26457
Merge branch 'lockref' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
...
Pull s390 lockref enablement from Heiko Carstens:
"Enabling the new lockless lockref variant on s390 would have been
trivial until Tony Luck added a cpu_relax() call into the
CMPXCHG_LOOP(), with commit d472d9d98b ("lockref: Relax in cmpxchg
loop")
As already mentioned cpu_relax() is very expensive on s390 since it
yields() the current virtual cpu. So we are talking of several
thousand cycles. Considering this enabling the lockless lockref
variant would contradict the intention of the new semantics. And also
some quick measurements show performance regressions of 50% and more.
Simply removing the cpu_relax() call again seems also not very
desireable since Waiman Long reported that for some workloads the call
improved performance by 5%."
* 'lockref' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux:
s390: enable ARCH_USE_CMPXCHG_LOCKREF
lockref: use arch_mutex_cpu_relax() in CMPXCHG_LOOP()
mutex: replace CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX with simple ifdef
2013-09-28 12:36:19 -07:00
Linus Torvalds
f2e98aa830
Merge tag 'devicetree-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
...
Pull DeviceTree fixes from Rob Herring:
"Clean-up to fix some warnings for !OF builds and spelling fixes in
docs:
- Clean-up openrisc prom.h
- Fix warnings caused by of_irq.h ifdefs
- Spelling fix for Synopsys"
* tag 'devicetree-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
dts: Fix misspelling of Synopsys
of: clean-up ifdefs in of_irq.h
openrisc: clean-up prom.h
2013-09-28 11:57:26 -07:00
Linus Torvalds
874db4d800
Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
...
Pull ARM fixes from Russell King:
"Just a few relatively small ARM fixes found since the last merge
window, nothing too exciting"
* 'fixes' of git://git.linaro.org/people/rmk/linux-arm:
ARM: 7837/3: fix Thumb-2 bug in AES assembler code
ARM: only allow kernel mode neon with AEABI
ARM: 7839/1: entry: fix tracing of ARM-private syscalls
ARM: 7836/1: add __get_user_unaligned/__put_user_unaligned
2013-09-28 11:56:34 -07:00
Ingo Molnar
8a3da6c7d0
perf/x86: Fix PMU detection printout when no PMU is detected
...
Ran into this cryptic PMU bootup log recently:
[ 0.124047] Performance Events:
[ 0.125000] smpboot: ...
Turns out we print this if no PMU is detected. Fall back to
the right condition so that the following is printed:
[ 0.122381] Performance Events: no PMU driver, software events only.
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl >
Cc: Arnaldo Carvalho de Melo <acme@redhat.com >
Link: http://lkml.kernel.org/n/tip-u2fwaUffakjp0qkpRfqljgsn@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2013-09-28 15:48:48 +02:00
Heiko Carstens
efc1d23b3d
s390: enable ARCH_USE_CMPXCHG_LOCKREF
...
Enable ARCH_USE_CMPXCHG_LOCKREF since it shows performance improvements
with Linus' simple stat() test case of up to 50% on a 30 cpu system.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com >
2013-09-28 12:46:29 +02:00
Heiko Carstens
083986e824
mutex: replace CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX with simple ifdef
...
Linus suggested to replace
#ifndef CONFIG_HAVE_ARCH_MUTEX_CPU_RELAX
#define arch_mutex_cpu_relax() cpu_relax()
#endif
with just a simple
#ifndef arch_mutex_cpu_relax
# define arch_mutex_cpu_relax() cpu_relax()
#endif
to get rid of CONFIG_HAVE_CPU_RELAX_SIMPLE. So architectures can
simply define arch_mutex_cpu_relax if they want an architecture
specific function instead of having to add a select statement in
their Kconfig in addition.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org >
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com >
2013-09-28 12:46:21 +02:00