public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] generic-ipi: add lock context annotations
@ 2010-11-22  7:33 Namhyung Kim
  2010-11-22 12:46 ` Peter Zijlstra
  0 siblings, 1 reply; 10+ messages in thread
From: Namhyung Kim @ 2010-11-22  7:33 UTC (permalink / raw)
  To: Ingo Molnar, Andrew Morton, Jens Axboe; +Cc: linux-kernel

The ipi_call_[un]lock[_irq] functions grab/release a spin lock
but were missing proper annotations. Add it.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
---
 kernel/smp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kernel/smp.c b/kernel/smp.c
index 12ed8b0..5a62f1f 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -511,21 +511,25 @@ int smp_call_function(smp_call_func_t func, void *info, int wait)
 EXPORT_SYMBOL(smp_call_function);
 
 void ipi_call_lock(void)
+	__acquires(call_function.lock)
 {
 	raw_spin_lock(&call_function.lock);
 }
 
 void ipi_call_unlock(void)
+	__releases(call_function.lock)
 {
 	raw_spin_unlock(&call_function.lock);
 }
 
 void ipi_call_lock_irq(void)
+	__acquires(call_function.lock)
 {
 	raw_spin_lock_irq(&call_function.lock);
 }
 
 void ipi_call_unlock_irq(void)
+	__releases(call_function.lock)
 {
 	raw_spin_unlock_irq(&call_function.lock);
 }
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-11-24 15:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-22  7:33 [PATCH] generic-ipi: add lock context annotations Namhyung Kim
2010-11-22 12:46 ` Peter Zijlstra
2010-11-23  3:19   ` Namhyung Kim
2010-11-23  8:49     ` Jens Axboe
2010-11-23  9:40       ` Dan Carpenter
2010-11-24  5:24         ` Namhyung Kim
2010-11-24  5:43           ` Dan Carpenter
2010-11-24 14:29             ` Namhyung Kim
2010-11-24 14:33               ` Peter Zijlstra
2010-11-24 15:03                 ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox