From: John Crispin Date: Sun, 20 Mar 2016 14:41:29 +0000 (+0000) Subject: oxnas: sync cpu-hotplug with mach-realview X-Git-Tag: reboot~180 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e9db6eb8b2c630b912c5ebf733eb39a4b38c0c57;p=openwrt%2Fstaging%2Flynxis.git oxnas: sync cpu-hotplug with mach-realview Make mach-oxnas/hotplug.c look more similar to mach-realview/hotplug.c, just cosmetics and maintainability concerns, no functional changes. Signed-off-by: Daniel Golle SVN-Revision: 49044 --- diff --git a/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c b/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c index 861beee7b3..e3c9cb5db7 100644 --- a/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c +++ b/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c @@ -14,7 +14,6 @@ #include #include -#include static inline void cpu_enter_lowpower(void) { @@ -41,7 +40,7 @@ static inline void cpu_leave_lowpower(void) { unsigned int v; - asm volatile("mrc p15, 0, %0, c1, c0, 0\n" + asm volatile( "mrc p15, 0, %0, c1, c0, 0\n" " orr %0, %0, %1\n" " mcr p15, 0, %0, c1, c0, 0\n" " mrc p15, 0, %0, c1, c0, 1\n" @@ -68,7 +67,7 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) : : "memory", "cc"); - if (read_pen_release() == cpu_logical_map(cpu)) { + if (pen_release == cpu_logical_map(cpu)) { /* * OK, proper wakeup, we're done */ @@ -91,7 +90,7 @@ static inline void platform_do_lowpower(unsigned int cpu, int *spurious) * * Called with IRQs disabled */ -void __ref ox820_cpu_die(unsigned int cpu) +void ox820_cpu_die(unsigned int cpu) { int spurious = 0;