From 78434bd94ca3a5bcb63b5a80a3c65d9bda766f5e Mon Sep 17 00:00:00 2001 From: Randy Dunlap Date: Wed, 16 May 2007 22:11:12 -0700 Subject: [PATCH] --- yaml --- r: 56527 b: refs/heads/master c: 621e59a771f310358ade8f14cb745d5d5f1c410e h: refs/heads/master i: 56525: 6a0c359b344a8b87b7171063ec9d50c8c24c4982 56523: 7860d30d517128f9a89cc536431594dc3df57e21 56519: a383b4e775fa1834f480613813e4fc807e7fe56d 56511: 6169015c2801e8b9c32c274e37a1a02c547cd785 v: v3 --- [refs] | 2 +- .../Documentation/DocBook/kernel-locking.tmpl | 123 +++++++++++------- 2 files changed, 79 insertions(+), 46 deletions(-) diff --git a/[refs] b/[refs] index f8be717a46d3..465f79c06617 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3dd1a32968d5e4cc61d4f7e3dc396ed0faca6984 +refs/heads/master: 621e59a771f310358ade8f14cb745d5d5f1c410e diff --git a/trunk/Documentation/DocBook/kernel-locking.tmpl b/trunk/Documentation/DocBook/kernel-locking.tmpl index 644c3884fab9..0a441f73261a 100644 --- a/trunk/Documentation/DocBook/kernel-locking.tmpl +++ b/trunk/Documentation/DocBook/kernel-locking.tmpl @@ -551,10 +551,12 @@ spin_lock_irqsave(), which is a superset of all other spinlock primitives. + Table of Locking Requirements + IRQ Handler A @@ -576,97 +578,128 @@ IRQ Handler B -spin_lock_irqsave +SLIS None Softirq A -spin_lock_irq -spin_lock_irq -spin_lock +SLI +SLI +SL Softirq B -spin_lock_irq -spin_lock_irq -spin_lock -spin_lock +SLI +SLI +SL +SL Tasklet A -spin_lock_irq -spin_lock_irq -spin_lock -spin_lock +SLI +SLI +SL +SL None Tasklet B -spin_lock_irq -spin_lock_irq -spin_lock -spin_lock -spin_lock +SLI +SLI +SL +SL +SL None Timer A -spin_lock_irq -spin_lock_irq -spin_lock -spin_lock -spin_lock -spin_lock +SLI +SLI +SL +SL +SL +SL None Timer B -spin_lock_irq -spin_lock_irq -spin_lock -spin_lock -spin_lock -spin_lock -spin_lock +SLI +SLI +SL +SL +SL +SL +SL None User Context A -spin_lock_irq -spin_lock_irq -spin_lock_bh -spin_lock_bh -spin_lock_bh -spin_lock_bh -spin_lock_bh -spin_lock_bh +SLI +SLI +SLBH +SLBH +SLBH +SLBH +SLBH +SLBH None User Context B +SLI +SLI +SLBH +SLBH +SLBH +SLBH +SLBH +SLBH +DI +None + + + + +
+ + +Legend for Locking Requirements Table + + + + +SLIS +spin_lock_irqsave + + +SLI spin_lock_irq -spin_lock_irq -spin_lock_bh -spin_lock_bh -spin_lock_bh -spin_lock_bh -spin_lock_bh + + +SL +spin_lock + + +SLBH spin_lock_bh + + +DI down_interruptible -None
+