aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-07 05:35:48 -0400
committerThomas Gleixner <tglx@linutronix.de>2018-05-13 09:55:43 -0400
commitbf9c96bec76fbc4424b4c70be563af4107d8044f (patch)
tree10450bba5ff63489273185a9172ad0a5932c4bca
parent1332a90558013ae4242e3dd7934bdcdeafb06c0d (diff)
timers: Adjust a kernel-doc comment
Those three warnings can easily solved by using :: to indicate a code block: ./kernel/time/timer.c:1259: WARNING: Unexpected indentation. ./kernel/time/timer.c:1261: WARNING: Unexpected indentation. ./kernel/time/timer.c:1262: WARNING: Block quote ends without a blank line; unexpected unindent. While here, align the lines at the block. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Stephen Boyd <sboyd@kernel.org> Cc: Linux Doc Mailing List <linux-doc@vger.kernel.org> Cc: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: John Stultz <john.stultz@linaro.org> Link: https://lkml.kernel.org/r/f02e6a0ce27f3b5e33415d92d07a40598904b3ee.1525684985.git.mchehab%2Bsamsung@kernel.org
-rw-r--r--kernel/time/timer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 4a4fd567fb26..cc2d23e6ff61 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -1251,18 +1251,18 @@ EXPORT_SYMBOL(try_to_del_timer_sync);
1251 * 1251 *
1252 * Note: For !irqsafe timers, you must not hold locks that are held in 1252 * Note: For !irqsafe timers, you must not hold locks that are held in
1253 * interrupt context while calling this function. Even if the lock has 1253 * interrupt context while calling this function. Even if the lock has
1254 * nothing to do with the timer in question. Here's why: 1254 * nothing to do with the timer in question. Here's why::
1255 * 1255 *
1256 * CPU0 CPU1 1256 * CPU0 CPU1
1257 * ---- ---- 1257 * ---- ----
1258 * <SOFTIRQ> 1258 * <SOFTIRQ>
1259 * call_timer_fn(); 1259 * call_timer_fn();
1260 * base->running_timer = mytimer; 1260 * base->running_timer = mytimer;
1261 * spin_lock_irq(somelock); 1261 * spin_lock_irq(somelock);
1262 * <IRQ> 1262 * <IRQ>
1263 * spin_lock(somelock); 1263 * spin_lock(somelock);
1264 * del_timer_sync(mytimer); 1264 * del_timer_sync(mytimer);
1265 * while (base->running_timer == mytimer); 1265 * while (base->running_timer == mytimer);
1266 * 1266 *
1267 * Now del_timer_sync() will never return and never release somelock. 1267 * Now del_timer_sync() will never return and never release somelock.
1268 * The interrupt on the other CPU is waiting to grab somelock but 1268 * The interrupt on the other CPU is waiting to grab somelock but