aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/smp.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-03 09:44:46 -0400
committerIngo Molnar <mingo@elte.hu>2011-09-13 05:12:14 -0400
commitbd31b85960a7fcb2d7ede216460b8da71a88411c (patch)
treef2ab1a1105705856c5cdfc71bcf3f7b5f897d30d /arch/arm/kernel/smp.c
parenta1741e7fcbc19a67520115df480ab17012cc3d0b (diff)
locking, ARM: Annotate low level hw locks as raw
Annotate the low level hardware locks which must not be preempted. In mainline this change documents the low level nature of the lock - otherwise there's no functional difference. Lockdep and Sparse checking will work as usual. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/kernel/smp.c')
-rw-r--r--arch/arm/kernel/smp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index d88ff0230e82..4e76e0cf09fb 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -538,7 +538,7 @@ static void percpu_timer_stop(void)
538} 538}
539#endif 539#endif
540 540
541static DEFINE_SPINLOCK(stop_lock); 541static DEFINE_RAW_SPINLOCK(stop_lock);
542 542
543/* 543/*
544 * ipi_cpu_stop - handle IPI from smp_send_stop() 544 * ipi_cpu_stop - handle IPI from smp_send_stop()
@@ -547,10 +547,10 @@ static void ipi_cpu_stop(unsigned int cpu)
547{ 547{
548 if (system_state == SYSTEM_BOOTING || 548 if (system_state == SYSTEM_BOOTING ||
549 system_state == SYSTEM_RUNNING) { 549 system_state == SYSTEM_RUNNING) {
550 spin_lock(&stop_lock); 550 raw_spin_lock(&stop_lock);
551 printk(KERN_CRIT "CPU%u: stopping\n", cpu); 551 printk(KERN_CRIT "CPU%u: stopping\n", cpu);
552 dump_stack(); 552 dump_stack();
553 spin_unlock(&stop_lock); 553 raw_spin_unlock(&stop_lock);
554 } 554 }
555 555
556 set_cpu_online(cpu, false); 556 set_cpu_online(cpu, false);