diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/platform/aclinux.h | 1 | ||||
-rw-r--r-- | include/asm-generic/atomic.h | 3 | ||||
-rw-r--r-- | include/asm-generic/barrier.h | 50 | ||||
-rw-r--r-- | include/asm-generic/bitops/atomic.h | 2 | ||||
-rw-r--r-- | include/asm-generic/cmpxchg.h | 87 | ||||
-rw-r--r-- | include/asm-generic/exec.h | 19 | ||||
-rw-r--r-- | include/asm-generic/switch_to.h | 30 | ||||
-rw-r--r-- | include/asm-generic/system.h | 141 | ||||
-rw-r--r-- | include/linux/cnt32_to_63.h | 1 | ||||
-rw-r--r-- | include/linux/debug_locks.h | 1 | ||||
-rw-r--r-- | include/linux/efi.h | 1 | ||||
-rw-r--r-- | include/linux/ide.h | 1 | ||||
-rw-r--r-- | include/linux/interrupt.h | 1 | ||||
-rw-r--r-- | include/linux/llist.h | 3 | ||||
-rw-r--r-- | include/linux/lsm_audit.h | 1 | ||||
-rw-r--r-- | include/linux/mm.h | 2 | ||||
-rw-r--r-- | include/linux/mtd/map.h | 2 | ||||
-rw-r--r-- | include/linux/parport.h | 1 | ||||
-rw-r--r-- | include/linux/rwsem.h | 1 | ||||
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | include/linux/skbuff.h | 1 | ||||
-rw-r--r-- | include/linux/spinlock.h | 2 | ||||
-rw-r--r-- | include/linux/stop_machine.h | 1 | ||||
-rw-r--r-- | include/linux/tty.h | 1 | ||||
-rw-r--r-- | include/linux/wait.h | 1 | ||||
-rw-r--r-- | include/xen/xen-ops.h | 1 |
26 files changed, 189 insertions, 167 deletions
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h index f4b2effe0333..6fbc4cab5834 100644 --- a/include/acpi/platform/aclinux.h +++ b/include/acpi/platform/aclinux.h | |||
@@ -57,7 +57,6 @@ | |||
57 | #include <linux/kernel.h> | 57 | #include <linux/kernel.h> |
58 | #include <linux/ctype.h> | 58 | #include <linux/ctype.h> |
59 | #include <linux/sched.h> | 59 | #include <linux/sched.h> |
60 | #include <asm/system.h> | ||
61 | #include <linux/atomic.h> | 60 | #include <linux/atomic.h> |
62 | #include <asm/div64.h> | 61 | #include <asm/div64.h> |
63 | #include <asm/acpi.h> | 62 | #include <asm/acpi.h> |
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index e37963c1df4d..1ced6413ea03 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #ifndef __ASM_GENERIC_ATOMIC_H | 15 | #ifndef __ASM_GENERIC_ATOMIC_H |
16 | #define __ASM_GENERIC_ATOMIC_H | 16 | #define __ASM_GENERIC_ATOMIC_H |
17 | 17 | ||
18 | #include <asm/cmpxchg.h> | ||
19 | |||
18 | #ifdef CONFIG_SMP | 20 | #ifdef CONFIG_SMP |
19 | /* Force people to define core atomics */ | 21 | /* Force people to define core atomics */ |
20 | # if !defined(atomic_add_return) || !defined(atomic_sub_return) || \ | 22 | # if !defined(atomic_add_return) || !defined(atomic_sub_return) || \ |
@@ -52,7 +54,6 @@ | |||
52 | #define atomic_set(v, i) (((v)->counter) = (i)) | 54 | #define atomic_set(v, i) (((v)->counter) = (i)) |
53 | 55 | ||
54 | #include <linux/irqflags.h> | 56 | #include <linux/irqflags.h> |
55 | #include <asm/system.h> | ||
56 | 57 | ||
57 | /** | 58 | /** |
58 | * atomic_add_return - add integer to atomic variable | 59 | * atomic_add_return - add integer to atomic variable |
diff --git a/include/asm-generic/barrier.h b/include/asm-generic/barrier.h new file mode 100644 index 000000000000..639d7a4d033b --- /dev/null +++ b/include/asm-generic/barrier.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /* Generic barrier definitions, based on MN10300 definitions. | ||
2 | * | ||
3 | * It should be possible to use these on really simple architectures, | ||
4 | * but it serves more as a starting point for new ports. | ||
5 | * | ||
6 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
7 | * Written by David Howells (dhowells@redhat.com) | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public Licence | ||
11 | * as published by the Free Software Foundation; either version | ||
12 | * 2 of the Licence, or (at your option) any later version. | ||
13 | */ | ||
14 | #ifndef __ASM_GENERIC_BARRIER_H | ||
15 | #define __ASM_GENERIC_BARRIER_H | ||
16 | |||
17 | #ifndef __ASSEMBLY__ | ||
18 | |||
19 | #define nop() asm volatile ("nop") | ||
20 | |||
21 | /* | ||
22 | * Force strict CPU ordering. | ||
23 | * And yes, this is required on UP too when we're talking | ||
24 | * to devices. | ||
25 | * | ||
26 | * This implementation only contains a compiler barrier. | ||
27 | */ | ||
28 | |||
29 | #define mb() asm volatile ("": : :"memory") | ||
30 | #define rmb() mb() | ||
31 | #define wmb() asm volatile ("": : :"memory") | ||
32 | |||
33 | #ifdef CONFIG_SMP | ||
34 | #define smp_mb() mb() | ||
35 | #define smp_rmb() rmb() | ||
36 | #define smp_wmb() wmb() | ||
37 | #else | ||
38 | #define smp_mb() barrier() | ||
39 | #define smp_rmb() barrier() | ||
40 | #define smp_wmb() barrier() | ||
41 | #endif | ||
42 | |||
43 | #define set_mb(var, value) do { var = value; mb(); } while (0) | ||
44 | #define set_wmb(var, value) do { var = value; wmb(); } while (0) | ||
45 | |||
46 | #define read_barrier_depends() do {} while (0) | ||
47 | #define smp_read_barrier_depends() do {} while (0) | ||
48 | |||
49 | #endif /* !__ASSEMBLY__ */ | ||
50 | #endif /* __ASM_GENERIC_BARRIER_H */ | ||
diff --git a/include/asm-generic/bitops/atomic.h b/include/asm-generic/bitops/atomic.h index ecc44a8e2b44..9ae6c34dc191 100644 --- a/include/asm-generic/bitops/atomic.h +++ b/include/asm-generic/bitops/atomic.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _ASM_GENERIC_BITOPS_ATOMIC_H_ | 2 | #define _ASM_GENERIC_BITOPS_ATOMIC_H_ |
3 | 3 | ||
4 | #include <asm/types.h> | 4 | #include <asm/types.h> |
5 | #include <asm/system.h> | 5 | #include <linux/irqflags.h> |
6 | 6 | ||
7 | #ifdef CONFIG_SMP | 7 | #ifdef CONFIG_SMP |
8 | #include <asm/spinlock.h> | 8 | #include <asm/spinlock.h> |
diff --git a/include/asm-generic/cmpxchg.h b/include/asm-generic/cmpxchg.h index 213ac6e8fe39..8a361834dc25 100644 --- a/include/asm-generic/cmpxchg.h +++ b/include/asm-generic/cmpxchg.h | |||
@@ -1,22 +1,97 @@ | |||
1 | /* | ||
2 | * Generic UP xchg and cmpxchg using interrupt disablement. Does not | ||
3 | * support SMP. | ||
4 | */ | ||
5 | |||
1 | #ifndef __ASM_GENERIC_CMPXCHG_H | 6 | #ifndef __ASM_GENERIC_CMPXCHG_H |
2 | #define __ASM_GENERIC_CMPXCHG_H | 7 | #define __ASM_GENERIC_CMPXCHG_H |
3 | 8 | ||
4 | /* | ||
5 | * Generic cmpxchg | ||
6 | * | ||
7 | * Uses the local cmpxchg. Does not support SMP. | ||
8 | */ | ||
9 | #ifdef CONFIG_SMP | 9 | #ifdef CONFIG_SMP |
10 | #error "Cannot use generic cmpxchg on SMP" | 10 | #error "Cannot use generic cmpxchg on SMP" |
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #include <linux/irqflags.h> | ||
14 | |||
15 | #ifndef xchg | ||
16 | |||
17 | /* | ||
18 | * This function doesn't exist, so you'll get a linker error if | ||
19 | * something tries to do an invalidly-sized xchg(). | ||
20 | */ | ||
21 | extern void __xchg_called_with_bad_pointer(void); | ||
22 | |||
23 | static inline | ||
24 | unsigned long __xchg(unsigned long x, volatile void *ptr, int size) | ||
25 | { | ||
26 | unsigned long ret, flags; | ||
27 | |||
28 | switch (size) { | ||
29 | case 1: | ||
30 | #ifdef __xchg_u8 | ||
31 | return __xchg_u8(x, ptr); | ||
32 | #else | ||
33 | local_irq_save(flags); | ||
34 | ret = *(volatile u8 *)ptr; | ||
35 | *(volatile u8 *)ptr = x; | ||
36 | local_irq_restore(flags); | ||
37 | return ret; | ||
38 | #endif /* __xchg_u8 */ | ||
39 | |||
40 | case 2: | ||
41 | #ifdef __xchg_u16 | ||
42 | return __xchg_u16(x, ptr); | ||
43 | #else | ||
44 | local_irq_save(flags); | ||
45 | ret = *(volatile u16 *)ptr; | ||
46 | *(volatile u16 *)ptr = x; | ||
47 | local_irq_restore(flags); | ||
48 | return ret; | ||
49 | #endif /* __xchg_u16 */ | ||
50 | |||
51 | case 4: | ||
52 | #ifdef __xchg_u32 | ||
53 | return __xchg_u32(x, ptr); | ||
54 | #else | ||
55 | local_irq_save(flags); | ||
56 | ret = *(volatile u32 *)ptr; | ||
57 | *(volatile u32 *)ptr = x; | ||
58 | local_irq_restore(flags); | ||
59 | return ret; | ||
60 | #endif /* __xchg_u32 */ | ||
61 | |||
62 | #ifdef CONFIG_64BIT | ||
63 | case 8: | ||
64 | #ifdef __xchg_u64 | ||
65 | return __xchg_u64(x, ptr); | ||
66 | #else | ||
67 | local_irq_save(flags); | ||
68 | ret = *(volatile u64 *)ptr; | ||
69 | *(volatile u64 *)ptr = x; | ||
70 | local_irq_restore(flags); | ||
71 | return ret; | ||
72 | #endif /* __xchg_u64 */ | ||
73 | #endif /* CONFIG_64BIT */ | ||
74 | |||
75 | default: | ||
76 | __xchg_called_with_bad_pointer(); | ||
77 | return x; | ||
78 | } | ||
79 | } | ||
80 | |||
81 | #define xchg(ptr, x) \ | ||
82 | ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) | ||
83 | |||
84 | #endif /* xchg */ | ||
85 | |||
13 | /* | 86 | /* |
14 | * Atomic compare and exchange. | 87 | * Atomic compare and exchange. |
15 | * | 88 | * |
16 | * Do not define __HAVE_ARCH_CMPXCHG because we want to use it to check whether | 89 | * Do not define __HAVE_ARCH_CMPXCHG because we want to use it to check whether |
17 | * a cmpxchg primitive faster than repeated local irq save/restore exists. | 90 | * a cmpxchg primitive faster than repeated local irq save/restore exists. |
18 | */ | 91 | */ |
92 | #include <asm-generic/cmpxchg-local.h> | ||
93 | |||
19 | #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) | 94 | #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) |
20 | #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) | 95 | #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) |
21 | 96 | ||
22 | #endif | 97 | #endif /* __ASM_GENERIC_CMPXCHG_H */ |
diff --git a/include/asm-generic/exec.h b/include/asm-generic/exec.h new file mode 100644 index 000000000000..567766b0074a --- /dev/null +++ b/include/asm-generic/exec.h | |||
@@ -0,0 +1,19 @@ | |||
1 | /* Generic process execution definitions, based on MN10300 definitions. | ||
2 | * | ||
3 | * It should be possible to use these on really simple architectures, | ||
4 | * but it serves more as a starting point for new ports. | ||
5 | * | ||
6 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
7 | * Written by David Howells (dhowells@redhat.com) | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public Licence | ||
11 | * as published by the Free Software Foundation; either version | ||
12 | * 2 of the Licence, or (at your option) any later version. | ||
13 | */ | ||
14 | #ifndef __ASM_GENERIC_EXEC_H | ||
15 | #define __ASM_GENERIC_EXEC_H | ||
16 | |||
17 | #define arch_align_stack(x) (x) | ||
18 | |||
19 | #endif /* __ASM_GENERIC_EXEC_H */ | ||
diff --git a/include/asm-generic/switch_to.h b/include/asm-generic/switch_to.h new file mode 100644 index 000000000000..052c4ac04fd5 --- /dev/null +++ b/include/asm-generic/switch_to.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /* Generic task switch macro wrapper, based on MN10300 definitions. | ||
2 | * | ||
3 | * It should be possible to use these on really simple architectures, | ||
4 | * but it serves more as a starting point for new ports. | ||
5 | * | ||
6 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
7 | * Written by David Howells (dhowells@redhat.com) | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public Licence | ||
11 | * as published by the Free Software Foundation; either version | ||
12 | * 2 of the Licence, or (at your option) any later version. | ||
13 | */ | ||
14 | #ifndef __ASM_GENERIC_SWITCH_TO_H | ||
15 | #define __ASM_GENERIC_SWITCH_TO_H | ||
16 | |||
17 | #include <linux/thread_info.h> | ||
18 | |||
19 | /* | ||
20 | * Context switching is now performed out-of-line in switch_to.S | ||
21 | */ | ||
22 | extern struct task_struct *__switch_to(struct task_struct *, | ||
23 | struct task_struct *); | ||
24 | |||
25 | #define switch_to(prev, next, last) \ | ||
26 | do { \ | ||
27 | ((last) = __switch_to((prev), (next))); \ | ||
28 | } while (0) | ||
29 | |||
30 | #endif /* __ASM_GENERIC_SWITCH_TO_H */ | ||
diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h deleted file mode 100644 index 215efa74f5a2..000000000000 --- a/include/asm-generic/system.h +++ /dev/null | |||
@@ -1,141 +0,0 @@ | |||
1 | /* Generic system definitions, based on MN10300 definitions. | ||
2 | * | ||
3 | * It should be possible to use these on really simple architectures, | ||
4 | * but it serves more as a starting point for new ports. | ||
5 | * | ||
6 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. | ||
7 | * Written by David Howells (dhowells@redhat.com) | ||
8 | * | ||
9 | * This program is free software; you can redistribute it and/or | ||
10 | * modify it under the terms of the GNU General Public Licence | ||
11 | * as published by the Free Software Foundation; either version | ||
12 | * 2 of the Licence, or (at your option) any later version. | ||
13 | */ | ||
14 | #ifndef __ASM_GENERIC_SYSTEM_H | ||
15 | #define __ASM_GENERIC_SYSTEM_H | ||
16 | |||
17 | #ifndef __ASSEMBLY__ | ||
18 | |||
19 | #include <linux/types.h> | ||
20 | #include <linux/irqflags.h> | ||
21 | |||
22 | #include <asm/cmpxchg-local.h> | ||
23 | #include <asm/cmpxchg.h> | ||
24 | |||
25 | struct task_struct; | ||
26 | |||
27 | /* context switching is now performed out-of-line in switch_to.S */ | ||
28 | extern struct task_struct *__switch_to(struct task_struct *, | ||
29 | struct task_struct *); | ||
30 | #define switch_to(prev, next, last) \ | ||
31 | do { \ | ||
32 | ((last) = __switch_to((prev), (next))); \ | ||
33 | } while (0) | ||
34 | |||
35 | #define arch_align_stack(x) (x) | ||
36 | |||
37 | #define nop() asm volatile ("nop") | ||
38 | |||
39 | #endif /* !__ASSEMBLY__ */ | ||
40 | |||
41 | /* | ||
42 | * Force strict CPU ordering. | ||
43 | * And yes, this is required on UP too when we're talking | ||
44 | * to devices. | ||
45 | * | ||
46 | * This implementation only contains a compiler barrier. | ||
47 | */ | ||
48 | |||
49 | #define mb() asm volatile ("": : :"memory") | ||
50 | #define rmb() mb() | ||
51 | #define wmb() asm volatile ("": : :"memory") | ||
52 | |||
53 | #ifdef CONFIG_SMP | ||
54 | #define smp_mb() mb() | ||
55 | #define smp_rmb() rmb() | ||
56 | #define smp_wmb() wmb() | ||
57 | #else | ||
58 | #define smp_mb() barrier() | ||
59 | #define smp_rmb() barrier() | ||
60 | #define smp_wmb() barrier() | ||
61 | #endif | ||
62 | |||
63 | #define set_mb(var, value) do { var = value; mb(); } while (0) | ||
64 | #define set_wmb(var, value) do { var = value; wmb(); } while (0) | ||
65 | |||
66 | #define read_barrier_depends() do {} while (0) | ||
67 | #define smp_read_barrier_depends() do {} while (0) | ||
68 | |||
69 | /* | ||
70 | * we make sure local_irq_enable() doesn't cause priority inversion | ||
71 | */ | ||
72 | #ifndef __ASSEMBLY__ | ||
73 | |||
74 | /* This function doesn't exist, so you'll get a linker error | ||
75 | * if something tries to do an invalid xchg(). */ | ||
76 | extern void __xchg_called_with_bad_pointer(void); | ||
77 | |||
78 | static inline | ||
79 | unsigned long __xchg(unsigned long x, volatile void *ptr, int size) | ||
80 | { | ||
81 | unsigned long ret, flags; | ||
82 | |||
83 | switch (size) { | ||
84 | case 1: | ||
85 | #ifdef __xchg_u8 | ||
86 | return __xchg_u8(x, ptr); | ||
87 | #else | ||
88 | local_irq_save(flags); | ||
89 | ret = *(volatile u8 *)ptr; | ||
90 | *(volatile u8 *)ptr = x; | ||
91 | local_irq_restore(flags); | ||
92 | return ret; | ||
93 | #endif /* __xchg_u8 */ | ||
94 | |||
95 | case 2: | ||
96 | #ifdef __xchg_u16 | ||
97 | return __xchg_u16(x, ptr); | ||
98 | #else | ||
99 | local_irq_save(flags); | ||
100 | ret = *(volatile u16 *)ptr; | ||
101 | *(volatile u16 *)ptr = x; | ||
102 | local_irq_restore(flags); | ||
103 | return ret; | ||
104 | #endif /* __xchg_u16 */ | ||
105 | |||
106 | case 4: | ||
107 | #ifdef __xchg_u32 | ||
108 | return __xchg_u32(x, ptr); | ||
109 | #else | ||
110 | local_irq_save(flags); | ||
111 | ret = *(volatile u32 *)ptr; | ||
112 | *(volatile u32 *)ptr = x; | ||
113 | local_irq_restore(flags); | ||
114 | return ret; | ||
115 | #endif /* __xchg_u32 */ | ||
116 | |||
117 | #ifdef CONFIG_64BIT | ||
118 | case 8: | ||
119 | #ifdef __xchg_u64 | ||
120 | return __xchg_u64(x, ptr); | ||
121 | #else | ||
122 | local_irq_save(flags); | ||
123 | ret = *(volatile u64 *)ptr; | ||
124 | *(volatile u64 *)ptr = x; | ||
125 | local_irq_restore(flags); | ||
126 | return ret; | ||
127 | #endif /* __xchg_u64 */ | ||
128 | #endif /* CONFIG_64BIT */ | ||
129 | |||
130 | default: | ||
131 | __xchg_called_with_bad_pointer(); | ||
132 | return x; | ||
133 | } | ||
134 | } | ||
135 | |||
136 | #define xchg(ptr, x) \ | ||
137 | ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) | ||
138 | |||
139 | #endif /* !__ASSEMBLY__ */ | ||
140 | |||
141 | #endif /* __ASM_GENERIC_SYSTEM_H */ | ||
diff --git a/include/linux/cnt32_to_63.h b/include/linux/cnt32_to_63.h index e3d8bf26e5eb..aa629bce9033 100644 --- a/include/linux/cnt32_to_63.h +++ b/include/linux/cnt32_to_63.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/types.h> | 17 | #include <linux/types.h> |
18 | #include <asm/byteorder.h> | 18 | #include <asm/byteorder.h> |
19 | #include <asm/system.h> | ||
20 | 19 | ||
21 | /* this is used only to give gcc a clue about good code generation */ | 20 | /* this is used only to give gcc a clue about good code generation */ |
22 | union cnt32_to_63 { | 21 | union cnt32_to_63 { |
diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index 94f20c1488a1..3bd46f766751 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h | |||
@@ -4,7 +4,6 @@ | |||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/atomic.h> | 5 | #include <linux/atomic.h> |
6 | #include <linux/bug.h> | 6 | #include <linux/bug.h> |
7 | #include <asm/system.h> | ||
8 | 7 | ||
9 | struct task_struct; | 8 | struct task_struct; |
10 | 9 | ||
diff --git a/include/linux/efi.h b/include/linux/efi.h index 47fbf6b3dc77..88ec80670d5f 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/pstore.h> | 22 | #include <linux/pstore.h> |
23 | 23 | ||
24 | #include <asm/page.h> | 24 | #include <asm/page.h> |
25 | #include <asm/system.h> | ||
26 | 25 | ||
27 | #define EFI_SUCCESS 0 | 26 | #define EFI_SUCCESS 0 |
28 | #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1))) | 27 | #define EFI_LOAD_ERROR ( 1 | (1UL << (BITS_PER_LONG-1))) |
diff --git a/include/linux/ide.h b/include/linux/ide.h index 7afe15f916da..b17974917dbf 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <acpi/acpi.h> | 22 | #include <acpi/acpi.h> |
23 | #endif | 23 | #endif |
24 | #include <asm/byteorder.h> | 24 | #include <asm/byteorder.h> |
25 | #include <asm/system.h> | ||
26 | #include <asm/io.h> | 25 | #include <asm/io.h> |
27 | 26 | ||
28 | /* for request_sense */ | 27 | /* for request_sense */ |
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 3f830e005118..2aea5d22db07 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include <linux/atomic.h> | 20 | #include <linux/atomic.h> |
21 | #include <asm/ptrace.h> | 21 | #include <asm/ptrace.h> |
22 | #include <asm/system.h> | ||
23 | 22 | ||
24 | /* | 23 | /* |
25 | * These correspond to the IORESOURCE_IRQ_* defines in | 24 | * These correspond to the IORESOURCE_IRQ_* defines in |
diff --git a/include/linux/llist.h b/include/linux/llist.h index 801b44b07aac..a5199f6d0e82 100644 --- a/include/linux/llist.h +++ b/include/linux/llist.h | |||
@@ -56,8 +56,7 @@ | |||
56 | */ | 56 | */ |
57 | 57 | ||
58 | #include <linux/kernel.h> | 58 | #include <linux/kernel.h> |
59 | #include <asm/system.h> | 59 | #include <asm/cmpxchg.h> |
60 | #include <asm/processor.h> | ||
61 | 60 | ||
62 | struct llist_head { | 61 | struct llist_head { |
63 | struct llist_node *first; | 62 | struct llist_node *first; |
diff --git a/include/linux/lsm_audit.h b/include/linux/lsm_audit.h index 88e78dedc2e8..eab507f2b1cb 100644 --- a/include/linux/lsm_audit.h +++ b/include/linux/lsm_audit.h | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/path.h> | 21 | #include <linux/path.h> |
22 | #include <linux/key.h> | 22 | #include <linux/key.h> |
23 | #include <linux/skbuff.h> | 23 | #include <linux/skbuff.h> |
24 | #include <asm/system.h> | ||
25 | 24 | ||
26 | 25 | ||
27 | /* Auxiliary data to use in generating the audit record. */ | 26 | /* Auxiliary data to use in generating the audit record. */ |
diff --git a/include/linux/mm.h b/include/linux/mm.h index cf7982336103..f2a60dde8c9e 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h | |||
@@ -1258,6 +1258,8 @@ static inline void pgtable_page_dtor(struct page *page) | |||
1258 | extern void free_area_init(unsigned long * zones_size); | 1258 | extern void free_area_init(unsigned long * zones_size); |
1259 | extern void free_area_init_node(int nid, unsigned long * zones_size, | 1259 | extern void free_area_init_node(int nid, unsigned long * zones_size, |
1260 | unsigned long zone_start_pfn, unsigned long *zholes_size); | 1260 | unsigned long zone_start_pfn, unsigned long *zholes_size); |
1261 | extern void free_initmem(void); | ||
1262 | |||
1261 | #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP | 1263 | #ifdef CONFIG_HAVE_MEMBLOCK_NODE_MAP |
1262 | /* | 1264 | /* |
1263 | * With CONFIG_HAVE_MEMBLOCK_NODE_MAP set, an architecture may initialise its | 1265 | * With CONFIG_HAVE_MEMBLOCK_NODE_MAP set, an architecture may initialise its |
diff --git a/include/linux/mtd/map.h b/include/linux/mtd/map.h index 94e924e2ecd5..3595a0236b0f 100644 --- a/include/linux/mtd/map.h +++ b/include/linux/mtd/map.h | |||
@@ -29,8 +29,8 @@ | |||
29 | #include <linux/kernel.h> | 29 | #include <linux/kernel.h> |
30 | 30 | ||
31 | #include <asm/unaligned.h> | 31 | #include <asm/unaligned.h> |
32 | #include <asm/system.h> | ||
33 | #include <asm/io.h> | 32 | #include <asm/io.h> |
33 | #include <asm/barrier.h> | ||
34 | 34 | ||
35 | #ifdef CONFIG_MTD_MAP_BANK_WIDTH_1 | 35 | #ifdef CONFIG_MTD_MAP_BANK_WIDTH_1 |
36 | #define map_bankwidth(map) 1 | 36 | #define map_bankwidth(map) 1 |
diff --git a/include/linux/parport.h b/include/linux/parport.h index 38a423ed3c01..106c2ca9440b 100644 --- a/include/linux/parport.h +++ b/include/linux/parport.h | |||
@@ -100,7 +100,6 @@ typedef enum { | |||
100 | #include <linux/wait.h> | 100 | #include <linux/wait.h> |
101 | #include <linux/irqreturn.h> | 101 | #include <linux/irqreturn.h> |
102 | #include <linux/semaphore.h> | 102 | #include <linux/semaphore.h> |
103 | #include <asm/system.h> | ||
104 | #include <asm/ptrace.h> | 103 | #include <asm/ptrace.h> |
105 | 104 | ||
106 | /* Define this later. */ | 105 | /* Define this later. */ |
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h index 63d406554391..54bd7cd7ecbd 100644 --- a/include/linux/rwsem.h +++ b/include/linux/rwsem.h | |||
@@ -14,7 +14,6 @@ | |||
14 | #include <linux/list.h> | 14 | #include <linux/list.h> |
15 | #include <linux/spinlock.h> | 15 | #include <linux/spinlock.h> |
16 | 16 | ||
17 | #include <asm/system.h> | ||
18 | #include <linux/atomic.h> | 17 | #include <linux/atomic.h> |
19 | 18 | ||
20 | struct rw_semaphore; | 19 | struct rw_semaphore; |
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0c3854b0d4b1..81a173c0897d 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -63,7 +63,6 @@ struct sched_param { | |||
63 | #include <linux/nodemask.h> | 63 | #include <linux/nodemask.h> |
64 | #include <linux/mm_types.h> | 64 | #include <linux/mm_types.h> |
65 | 65 | ||
66 | #include <asm/system.h> | ||
67 | #include <asm/page.h> | 66 | #include <asm/page.h> |
68 | #include <asm/ptrace.h> | 67 | #include <asm/ptrace.h> |
69 | #include <asm/cputime.h> | 68 | #include <asm/cputime.h> |
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index 192250bd49f5..33370271b8b2 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -501,7 +501,6 @@ struct sk_buff { | |||
501 | */ | 501 | */ |
502 | #include <linux/slab.h> | 502 | #include <linux/slab.h> |
503 | 503 | ||
504 | #include <asm/system.h> | ||
505 | 504 | ||
506 | /* | 505 | /* |
507 | * skb might have a dst pointer attached, refcounted or not. | 506 | * skb might have a dst pointer attached, refcounted or not. |
diff --git a/include/linux/spinlock.h b/include/linux/spinlock.h index 363239087263..7d537ced949a 100644 --- a/include/linux/spinlock.h +++ b/include/linux/spinlock.h | |||
@@ -55,8 +55,8 @@ | |||
55 | #include <linux/kernel.h> | 55 | #include <linux/kernel.h> |
56 | #include <linux/stringify.h> | 56 | #include <linux/stringify.h> |
57 | #include <linux/bottom_half.h> | 57 | #include <linux/bottom_half.h> |
58 | #include <asm/barrier.h> | ||
58 | 59 | ||
59 | #include <asm/system.h> | ||
60 | 60 | ||
61 | /* | 61 | /* |
62 | * Must define these before including other files, inline functions need them | 62 | * Must define these before including other files, inline functions need them |
diff --git a/include/linux/stop_machine.h b/include/linux/stop_machine.h index c170edc3bf5f..3b5e910d14ca 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h | |||
@@ -5,7 +5,6 @@ | |||
5 | #include <linux/cpumask.h> | 5 | #include <linux/cpumask.h> |
6 | #include <linux/smp.h> | 6 | #include <linux/smp.h> |
7 | #include <linux/list.h> | 7 | #include <linux/list.h> |
8 | #include <asm/system.h> | ||
9 | 8 | ||
10 | /* | 9 | /* |
11 | * stop_cpu[s]() is simplistic per-cpu maximum priority cpu | 10 | * stop_cpu[s]() is simplistic per-cpu maximum priority cpu |
diff --git a/include/linux/tty.h b/include/linux/tty.h index a91ff403b3bf..9f47ab540f65 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -44,7 +44,6 @@ | |||
44 | #include <linux/tty_ldisc.h> | 44 | #include <linux/tty_ldisc.h> |
45 | #include <linux/mutex.h> | 45 | #include <linux/mutex.h> |
46 | 46 | ||
47 | #include <asm/system.h> | ||
48 | 47 | ||
49 | 48 | ||
50 | /* | 49 | /* |
diff --git a/include/linux/wait.h b/include/linux/wait.h index 7d9a9e990ce6..1dee81c41ff1 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h | |||
@@ -22,7 +22,6 @@ | |||
22 | #include <linux/list.h> | 22 | #include <linux/list.h> |
23 | #include <linux/stddef.h> | 23 | #include <linux/stddef.h> |
24 | #include <linux/spinlock.h> | 24 | #include <linux/spinlock.h> |
25 | #include <asm/system.h> | ||
26 | #include <asm/current.h> | 25 | #include <asm/current.h> |
27 | 26 | ||
28 | typedef struct __wait_queue wait_queue_t; | 27 | typedef struct __wait_queue wait_queue_t; |
diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h index 03c85d7387fb..6a198e46ab6e 100644 --- a/include/xen/xen-ops.h +++ b/include/xen/xen-ops.h | |||
@@ -23,6 +23,7 @@ int xen_create_contiguous_region(unsigned long vstart, unsigned int order, | |||
23 | 23 | ||
24 | void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order); | 24 | void xen_destroy_contiguous_region(unsigned long vstart, unsigned int order); |
25 | 25 | ||
26 | struct vm_area_struct; | ||
26 | int xen_remap_domain_mfn_range(struct vm_area_struct *vma, | 27 | int xen_remap_domain_mfn_range(struct vm_area_struct *vma, |
27 | unsigned long addr, | 28 | unsigned long addr, |
28 | unsigned long mfn, int nr, | 29 | unsigned long mfn, int nr, |