Переглянути джерело

Merge pull request #690 from sjp38/sync2_fix_1

Sync2 fix 1
0xAX 5 роки тому
батько
коміт
cadd5c3576
2 змінених файлів з 3 додано та 3 видалено
  1. 2 2
      SyncPrim/linux-sync-2.md
  2. 1 1
      contributors.md

+ 2 - 2
SyncPrim/linux-sync-2.md

@@ -10,9 +10,9 @@ We saw the [API](https://en.wikipedia.org/wiki/Application_programming_interface
 
 * `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_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_unlock` - releases given `spinlock`;
+* `spin_unlock` - releases given `spinlock` and acquire given `spinlock`;
 * `spin_unlock_bh` - releases given `spinlock` and enables software interrupts;
 * `spin_is_locked` - returns the state of the given `spinlock`;
 * and etc.

+ 1 - 1
contributors.md

@@ -126,4 +126,4 @@ Thank you to all contributors:
 * [Junsoo Lee](https://github.com/junsooo)
 * [SeongJae Park](https://github.com/sjp38)
 * [Stefan20162016](https://github.com/stefan20162016)
-* [Marco Torsello](https://github.com/md1512)
+* [Marco Torsello](https://github.com/md1512)