Commit a6550207538619bc9b90bac2e1d5e54902a432ad
Committed by
Matthew Wilcox
1 parent
5a6483feb0
Exists in
master
and in
4 other branches
kernel: Remove unnecessary inclusions of asm/semaphore.h
None of these files use any of the functionality promised by asm/semaphore.h. Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Showing 6 changed files with 1 additions and 7 deletions Side-by-side Diff
kernel/kexec.c
kernel/kthread.c
kernel/module.c
... | ... | @@ -43,7 +43,6 @@ |
43 | 43 | #include <linux/mutex.h> |
44 | 44 | #include <linux/unwind.h> |
45 | 45 | #include <asm/uaccess.h> |
46 | -#include <asm/semaphore.h> | |
47 | 46 | #include <asm/cacheflush.h> |
48 | 47 | #include <linux/license.h> |
49 | 48 | #include <asm/sections.h> |
... | ... | @@ -664,7 +663,7 @@ |
664 | 663 | |
665 | 664 | static void wait_for_zero_refcount(struct module *mod) |
666 | 665 | { |
667 | - /* Since we might sleep for some time, drop the semaphore first */ | |
666 | + /* Since we might sleep for some time, release the mutex first */ | |
668 | 667 | mutex_unlock(&module_mutex); |
669 | 668 | for (;;) { |
670 | 669 | DEBUGP("Looking at refcount...\n"); |
kernel/posix-timers.c
kernel/profile.c