From 1ef8bdb65357889a6a143d7a867f9f88d8cba818 Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Tue, 21 May 2019 04:22:09 +0900 Subject: [PATCH] SyncPrim: Add missed description A description about 'spin_lock_irqsave' and 'spin_lock_irq' is missing lock acquisition. This commit adds the missed description. Signed-off-by: SeongJae Park --- SyncPrim/linux-sync-1.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SyncPrim/linux-sync-1.md b/SyncPrim/linux-sync-1.md index fc8f1ce..9e5556a 100644 --- a/SyncPrim/linux-sync-1.md +++ b/SyncPrim/linux-sync-1.md @@ -126,8 +126,8 @@ We will not stop on this structures for now. Let's look at the operations on a ` * `spin_lock_init` - produces initialization of the given `spinlock`; * `spin_lock` - acquires given `spinlock`; -* `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`. -* `spin_lock_irqsave` and `spin_lock_irq` - disable interrupts on local processor and preserve/not preserve previous interrupt state in the `flags`; +* `spin_lock_bh` - disables software [interrupts](https://en.wikipedia.org/wiki/Interrupt) and acquire given `spinlock`; +* `spin_lock_irqsave` and `spin_lock_irq` - disable interrupts on local processor, preserve/not preserve previous interrupt state in the `flags` and acquire given `spinlock`; * `spin_unlock` - releases given `spinlock`; * `spin_unlock_bh` - releases given `spinlock` and enables software interrupts; * `spin_is_locked` - returns the state of the given `spinlock`;