Author: blogic
Date: 2016-03-20 15:41:29 +0100 (Sun, 20 Mar 2016)
New Revision: 49044

Modified:
   trunk/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c
Log:
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 <[email protected]>

Modified: trunk/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c
===================================================================
--- trunk/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c        
2016-03-20 14:41:25 UTC (rev 49043)
+++ trunk/target/linux/oxnas/files/arch/arm/mach-oxnas/hotplug.c        
2016-03-20 14:41:29 UTC (rev 49044)
@@ -14,7 +14,6 @@
 
 #include <asm/cp15.h>
 #include <asm/smp_plat.h>
-#include <mach/smp.h>
 
 static inline void cpu_enter_lowpower(void)
 {
@@ -41,7 +40,7 @@
 {
        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 @@
                    :
                    : "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 @@
  *
  * Called with IRQs disabled
  */
-void __ref ox820_cpu_die(unsigned int cpu)
+void ox820_cpu_die(unsigned int cpu)
 {
        int spurious = 0;
 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to