Commit a6550207538619bc9b90bac2e1d5e54902a432ad

Authored by Matthew Wilcox
Committed by Matthew Wilcox
1 parent 5a6483feb0

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

... ... @@ -29,7 +29,6 @@
29 29 #include <asm/uaccess.h>
30 30 #include <asm/io.h>
31 31 #include <asm/system.h>
32   -#include <asm/semaphore.h>
33 32 #include <asm/sections.h>
34 33  
35 34 /* Per cpu memory for storing cpu states in case of system crash. */
... ... @@ -13,7 +13,6 @@
13 13 #include <linux/file.h>
14 14 #include <linux/module.h>
15 15 #include <linux/mutex.h>
16   -#include <asm/semaphore.h>
17 16  
18 17 #define KTHREAD_NICE_LEVEL (-5)
19 18  
... ... @@ -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
... ... @@ -37,7 +37,6 @@
37 37 #include <linux/mutex.h>
38 38  
39 39 #include <asm/uaccess.h>
40   -#include <asm/semaphore.h>
41 40 #include <linux/list.h>
42 41 #include <linux/init.h>
43 42 #include <linux/compiler.h>
... ... @@ -23,7 +23,6 @@
23 23 #include <linux/highmem.h>
24 24 #include <linux/mutex.h>
25 25 #include <asm/sections.h>
26   -#include <asm/semaphore.h>
27 26 #include <asm/irq_regs.h>
28 27 #include <asm/ptrace.h>
29 28  
kernel/stop_machine.c
... ... @@ -11,7 +11,6 @@
11 11 #include <linux/interrupt.h>
12 12  
13 13 #include <asm/atomic.h>
14   -#include <asm/semaphore.h>
15 14 #include <asm/uaccess.h>
16 15  
17 16 /* Since we effect priority and affinity (both of which are visible