diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-11-16 16:32:55 +0000 |
commit | a4c205011b62f45e116eb26c974fa3bd771ce194 (patch) | |
tree | 123b05cb192785d0fc45c1f0acd0e6f8cba68144 /target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch | |
parent | 974b9f5c9a7322424d5127dbe45236a0658c69ba (diff) | |
download | upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.gz upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.tar.bz2 upstream-a4c205011b62f45e116eb26c974fa3bd771ce194.zip |
move patches to patches-2.6.36
Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34220
Diffstat (limited to 'target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch')
-rw-r--r-- | target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch b/target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch new file mode 100644 index 0000000000..3d572f5f29 --- /dev/null +++ b/target/linux/leon/patches-2.6.36/003-smp_cpu_stuck_fix.patch @@ -0,0 +1,23 @@ +From 417bc6751fdd3c24df274f25e020ec3decd09280 Mon Sep 17 00:00:00 2001 +From: Daniel Hellstrom <daniel@gaisler.com> +Date: Thu, 16 Sep 2010 11:00:46 +0200 +Subject: [PATCH] Fixed SPARC/LEON SMP CPU Stuck problem. + +Signed-off-by: Daniel Hellstrom <daniel@gaisler.com> +--- + arch/sparc/kernel/leon_smp.c | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +--- a/arch/sparc/kernel/leon_smp.c ++++ b/arch/sparc/kernel/leon_smp.c +@@ -56,8 +56,8 @@ void __init leon_configure_cache_smp(voi + static inline unsigned long do_swap(volatile unsigned long *ptr, + unsigned long val) + { +- __asm__ __volatile__("swapa [%1] %2, %0\n\t" : "=&r"(val) +- : "r"(ptr), "i"(ASI_LEON_DCACHE_MISS) ++ __asm__ __volatile__("swapa [%2] %3, %0\n\t" : "=&r"(val) ++ : "0"(val), "r"(ptr), "i"(ASI_LEON_DCACHE_MISS) + : "memory"); + return val; + } |