blob: ff214bac9cb4c5fa5a33ad0927dbbe76bed6728c [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Russell King4baa9922008-08-02 10:55:55 +01002 * arch/arm/include/asm/atomic.h
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
4 * Copyright (C) 1996 Russell King.
5 * Copyright (C) 2002 Deep Blue Solutions Ltd.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 */
11#ifndef __ASM_ARM_ATOMIC_H
12#define __ASM_ARM_ATOMIC_H
13
Russell King8dc39b82005-11-16 17:23:57 +000014#include <linux/compiler.h>
Will Deaconf38d9992013-07-04 11:43:18 +010015#include <linux/prefetch.h>
Matthew Wilcoxea4354672009-01-06 14:40:39 -080016#include <linux/types.h>
David Howells9f97da72012-03-28 18:30:01 +010017#include <linux/irqflags.h>
18#include <asm/barrier.h>
19#include <asm/cmpxchg.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#define ATOMIC_INIT(i) { (i) }
22
23#ifdef __KERNEL__
24
Catalin Marinas200b8122009-09-18 23:27:05 +010025/*
26 * On ARM, ordinary assignment (str instruction) doesn't clear the local
27 * strex/ldrex monitor on some implementations. The reason we can use it for
28 * atomic_set() is the clrex or dummy strex done on every exception return.
29 */
Pranith Kumar22910592014-09-23 10:29:50 -040030#define atomic_read(v) ACCESS_ONCE((v)->counter)
Catalin Marinas200b8122009-09-18 23:27:05 +010031#define atomic_set(v,i) (((v)->counter) = (i))
Linus Torvalds1da177e2005-04-16 15:20:36 -070032
33#if __LINUX_ARM_ARCH__ >= 6
34
35/*
36 * ARMv6 UP and SMP safe atomic ops. We use load exclusive and
37 * store exclusive to ensure that these are atomic. We may loop
Catalin Marinas200b8122009-09-18 23:27:05 +010038 * to ensure that the update happens.
Linus Torvalds1da177e2005-04-16 15:20:36 -070039 */
Russell Kingbac4e962009-05-25 20:58:00 +010040
Peter Zijlstraaee9a552014-03-23 16:38:18 +010041#define ATOMIC_OP(op, c_op, asm_op) \
42static inline void atomic_##op(int i, atomic_t *v) \
43{ \
44 unsigned long tmp; \
45 int result; \
46 \
47 prefetchw(&v->counter); \
48 __asm__ __volatile__("@ atomic_" #op "\n" \
49"1: ldrex %0, [%3]\n" \
50" " #asm_op " %0, %0, %4\n" \
51" strex %1, %0, [%3]\n" \
52" teq %1, #0\n" \
53" bne 1b" \
54 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
55 : "r" (&v->counter), "Ir" (i) \
56 : "cc"); \
57} \
Russell Kingbac4e962009-05-25 20:58:00 +010058
Peter Zijlstraaee9a552014-03-23 16:38:18 +010059#define ATOMIC_OP_RETURN(op, c_op, asm_op) \
60static inline int atomic_##op##_return(int i, atomic_t *v) \
61{ \
62 unsigned long tmp; \
63 int result; \
64 \
65 smp_mb(); \
66 prefetchw(&v->counter); \
67 \
68 __asm__ __volatile__("@ atomic_" #op "_return\n" \
69"1: ldrex %0, [%3]\n" \
70" " #asm_op " %0, %0, %4\n" \
71" strex %1, %0, [%3]\n" \
72" teq %1, #0\n" \
73" bne 1b" \
74 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
75 : "r" (&v->counter), "Ir" (i) \
76 : "cc"); \
77 \
78 smp_mb(); \
79 \
80 return result; \
Linus Torvalds1da177e2005-04-16 15:20:36 -070081}
82
Nick Piggin4a6dae62005-11-13 16:07:24 -080083static inline int atomic_cmpxchg(atomic_t *ptr, int old, int new)
84{
Chen Gang4dcc1cf2013-10-26 15:07:25 +010085 int oldval;
86 unsigned long res;
Nick Piggin4a6dae62005-11-13 16:07:24 -080087
Russell Kingbac4e962009-05-25 20:58:00 +010088 smp_mb();
Will Deaconc32ffce02014-02-21 17:01:48 +010089 prefetchw(&ptr->counter);
Russell Kingbac4e962009-05-25 20:58:00 +010090
Nick Piggin4a6dae62005-11-13 16:07:24 -080091 do {
92 __asm__ __volatile__("@ atomic_cmpxchg\n"
Will Deacon398aa662010-07-08 10:59:16 +010093 "ldrex %1, [%3]\n"
Nicolas Pitrea7d06832005-11-16 15:05:11 +000094 "mov %0, #0\n"
Will Deacon398aa662010-07-08 10:59:16 +010095 "teq %1, %4\n"
96 "strexeq %0, %5, [%3]\n"
97 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
Nick Piggin4a6dae62005-11-13 16:07:24 -080098 : "r" (&ptr->counter), "Ir" (old), "r" (new)
99 : "cc");
100 } while (res);
101
Russell Kingbac4e962009-05-25 20:58:00 +0100102 smp_mb();
103
Nick Piggin4a6dae62005-11-13 16:07:24 -0800104 return oldval;
105}
106
Will Deacondb38ee82014-02-21 17:01:48 +0100107static inline int __atomic_add_unless(atomic_t *v, int a, int u)
108{
109 int oldval, newval;
110 unsigned long tmp;
111
112 smp_mb();
113 prefetchw(&v->counter);
114
115 __asm__ __volatile__ ("@ atomic_add_unless\n"
116"1: ldrex %0, [%4]\n"
117" teq %0, %5\n"
118" beq 2f\n"
119" add %1, %0, %6\n"
120" strex %2, %1, [%4]\n"
121" teq %2, #0\n"
122" bne 1b\n"
123"2:"
124 : "=&r" (oldval), "=&r" (newval), "=&r" (tmp), "+Qo" (v->counter)
125 : "r" (&v->counter), "r" (u), "r" (a)
126 : "cc");
127
128 if (oldval != u)
129 smp_mb();
130
131 return oldval;
132}
133
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134#else /* ARM_ARCH_6 */
135
Linus Torvalds1da177e2005-04-16 15:20:36 -0700136#ifdef CONFIG_SMP
137#error SMP not supported on pre-ARMv6 CPUs
138#endif
139
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100140#define ATOMIC_OP(op, c_op, asm_op) \
141static inline void atomic_##op(int i, atomic_t *v) \
142{ \
143 unsigned long flags; \
144 \
145 raw_local_irq_save(flags); \
146 v->counter c_op i; \
147 raw_local_irq_restore(flags); \
148} \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100150#define ATOMIC_OP_RETURN(op, c_op, asm_op) \
151static inline int atomic_##op##_return(int i, atomic_t *v) \
152{ \
153 unsigned long flags; \
154 int val; \
155 \
156 raw_local_irq_save(flags); \
157 v->counter c_op i; \
158 val = v->counter; \
159 raw_local_irq_restore(flags); \
160 \
161 return val; \
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162}
Linus Torvalds1da177e2005-04-16 15:20:36 -0700163
Nick Piggin4a6dae62005-11-13 16:07:24 -0800164static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
165{
166 int ret;
167 unsigned long flags;
168
Lennert Buytenhek8dd5c842006-09-16 10:47:18 +0100169 raw_local_irq_save(flags);
Nick Piggin4a6dae62005-11-13 16:07:24 -0800170 ret = v->counter;
171 if (likely(ret == old))
172 v->counter = new;
Lennert Buytenhek8dd5c842006-09-16 10:47:18 +0100173 raw_local_irq_restore(flags);
Nick Piggin4a6dae62005-11-13 16:07:24 -0800174
175 return ret;
176}
177
Arun Sharmaf24219b2011-07-26 16:09:07 -0700178static inline int __atomic_add_unless(atomic_t *v, int a, int u)
Nick Piggin8426e1f2005-11-13 16:07:25 -0800179{
180 int c, old;
181
182 c = atomic_read(v);
183 while (c != u && (old = atomic_cmpxchg((v), c, c + a)) != c)
184 c = old;
Arun Sharmaf24219b2011-07-26 16:09:07 -0700185 return c;
Nick Piggin8426e1f2005-11-13 16:07:25 -0800186}
Nick Piggin8426e1f2005-11-13 16:07:25 -0800187
Will Deacondb38ee82014-02-21 17:01:48 +0100188#endif /* __LINUX_ARM_ARCH__ */
189
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100190#define ATOMIC_OPS(op, c_op, asm_op) \
191 ATOMIC_OP(op, c_op, asm_op) \
192 ATOMIC_OP_RETURN(op, c_op, asm_op)
193
194ATOMIC_OPS(add, +=, add)
195ATOMIC_OPS(sub, -=, sub)
196
Peter Zijlstra12589792014-04-23 20:04:39 +0200197#define CONFIG_ARCH_HAS_ATOMIC_OR
198#define atomic_andnot atomic_andnot
199
200ATOMIC_OP(and, &=, and)
201ATOMIC_OP(andnot, &= ~, bic)
202ATOMIC_OP(or, |=, orr)
203ATOMIC_OP(xor, ^=, eor)
204
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100205#undef ATOMIC_OPS
206#undef ATOMIC_OP_RETURN
207#undef ATOMIC_OP
208
Will Deacondb38ee82014-02-21 17:01:48 +0100209#define atomic_xchg(v, new) (xchg(&((v)->counter), new))
210
Russell Kingbac4e962009-05-25 20:58:00 +0100211#define atomic_inc(v) atomic_add(1, v)
212#define atomic_dec(v) atomic_sub(1, v)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213
214#define atomic_inc_and_test(v) (atomic_add_return(1, v) == 0)
215#define atomic_dec_and_test(v) (atomic_sub_return(1, v) == 0)
216#define atomic_inc_return(v) (atomic_add_return(1, v))
217#define atomic_dec_return(v) (atomic_sub_return(1, v))
218#define atomic_sub_and_test(i, v) (atomic_sub_return(i, v) == 0)
219
220#define atomic_add_negative(i,v) (atomic_add_return(i, v) < 0)
221
Will Deacon24b44a62010-01-20 19:05:07 +0100222#ifndef CONFIG_GENERIC_ATOMIC64
223typedef struct {
Chen Gang237f1232013-10-26 15:07:04 +0100224 long long counter;
Will Deacon24b44a62010-01-20 19:05:07 +0100225} atomic64_t;
226
227#define ATOMIC64_INIT(i) { (i) }
228
Will Deacon4fd75912013-03-28 11:25:03 +0100229#ifdef CONFIG_ARM_LPAE
Chen Gang237f1232013-10-26 15:07:04 +0100230static inline long long atomic64_read(const atomic64_t *v)
Will Deacon4fd75912013-03-28 11:25:03 +0100231{
Chen Gang237f1232013-10-26 15:07:04 +0100232 long long result;
Will Deacon4fd75912013-03-28 11:25:03 +0100233
234 __asm__ __volatile__("@ atomic64_read\n"
235" ldrd %0, %H0, [%1]"
236 : "=&r" (result)
237 : "r" (&v->counter), "Qo" (v->counter)
238 );
239
240 return result;
241}
242
Chen Gang237f1232013-10-26 15:07:04 +0100243static inline void atomic64_set(atomic64_t *v, long long i)
Will Deacon4fd75912013-03-28 11:25:03 +0100244{
245 __asm__ __volatile__("@ atomic64_set\n"
246" strd %2, %H2, [%1]"
247 : "=Qo" (v->counter)
248 : "r" (&v->counter), "r" (i)
249 );
250}
251#else
Chen Gang237f1232013-10-26 15:07:04 +0100252static inline long long atomic64_read(const atomic64_t *v)
Will Deacon24b44a62010-01-20 19:05:07 +0100253{
Chen Gang237f1232013-10-26 15:07:04 +0100254 long long result;
Will Deacon24b44a62010-01-20 19:05:07 +0100255
256 __asm__ __volatile__("@ atomic64_read\n"
257" ldrexd %0, %H0, [%1]"
258 : "=&r" (result)
Will Deacon398aa662010-07-08 10:59:16 +0100259 : "r" (&v->counter), "Qo" (v->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100260 );
261
262 return result;
263}
264
Chen Gang237f1232013-10-26 15:07:04 +0100265static inline void atomic64_set(atomic64_t *v, long long i)
Will Deacon24b44a62010-01-20 19:05:07 +0100266{
Chen Gang237f1232013-10-26 15:07:04 +0100267 long long tmp;
Will Deacon24b44a62010-01-20 19:05:07 +0100268
Will Deaconf38d9992013-07-04 11:43:18 +0100269 prefetchw(&v->counter);
Will Deacon24b44a62010-01-20 19:05:07 +0100270 __asm__ __volatile__("@ atomic64_set\n"
Will Deacon398aa662010-07-08 10:59:16 +0100271"1: ldrexd %0, %H0, [%2]\n"
272" strexd %0, %3, %H3, [%2]\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100273" teq %0, #0\n"
274" bne 1b"
Will Deacon398aa662010-07-08 10:59:16 +0100275 : "=&r" (tmp), "=Qo" (v->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100276 : "r" (&v->counter), "r" (i)
277 : "cc");
278}
Will Deacon4fd75912013-03-28 11:25:03 +0100279#endif
Will Deacon24b44a62010-01-20 19:05:07 +0100280
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100281#define ATOMIC64_OP(op, op1, op2) \
282static inline void atomic64_##op(long long i, atomic64_t *v) \
283{ \
284 long long result; \
285 unsigned long tmp; \
286 \
287 prefetchw(&v->counter); \
288 __asm__ __volatile__("@ atomic64_" #op "\n" \
289"1: ldrexd %0, %H0, [%3]\n" \
290" " #op1 " %Q0, %Q0, %Q4\n" \
291" " #op2 " %R0, %R0, %R4\n" \
292" strexd %1, %0, %H0, [%3]\n" \
293" teq %1, #0\n" \
294" bne 1b" \
295 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
296 : "r" (&v->counter), "r" (i) \
297 : "cc"); \
298} \
Will Deacon24b44a62010-01-20 19:05:07 +0100299
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100300#define ATOMIC64_OP_RETURN(op, op1, op2) \
301static inline long long atomic64_##op##_return(long long i, atomic64_t *v) \
302{ \
303 long long result; \
304 unsigned long tmp; \
305 \
306 smp_mb(); \
307 prefetchw(&v->counter); \
308 \
309 __asm__ __volatile__("@ atomic64_" #op "_return\n" \
310"1: ldrexd %0, %H0, [%3]\n" \
311" " #op1 " %Q0, %Q0, %Q4\n" \
312" " #op2 " %R0, %R0, %R4\n" \
313" strexd %1, %0, %H0, [%3]\n" \
314" teq %1, #0\n" \
315" bne 1b" \
316 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \
317 : "r" (&v->counter), "r" (i) \
318 : "cc"); \
319 \
320 smp_mb(); \
321 \
322 return result; \
Will Deacon24b44a62010-01-20 19:05:07 +0100323}
324
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100325#define ATOMIC64_OPS(op, op1, op2) \
326 ATOMIC64_OP(op, op1, op2) \
327 ATOMIC64_OP_RETURN(op, op1, op2)
Will Deacon24b44a62010-01-20 19:05:07 +0100328
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100329ATOMIC64_OPS(add, adds, adc)
330ATOMIC64_OPS(sub, subs, sbc)
Will Deacon24b44a62010-01-20 19:05:07 +0100331
Peter Zijlstra12589792014-04-23 20:04:39 +0200332#define atomic64_andnot atomic64_andnot
333
334ATOMIC64_OP(and, and, and)
335ATOMIC64_OP(andnot, bic, bic)
336ATOMIC64_OP(or, orr, orr)
337ATOMIC64_OP(xor, eor, eor)
338
Peter Zijlstraaee9a552014-03-23 16:38:18 +0100339#undef ATOMIC64_OPS
340#undef ATOMIC64_OP_RETURN
341#undef ATOMIC64_OP
Will Deacon24b44a62010-01-20 19:05:07 +0100342
Chen Gang237f1232013-10-26 15:07:04 +0100343static inline long long atomic64_cmpxchg(atomic64_t *ptr, long long old,
344 long long new)
Will Deacon24b44a62010-01-20 19:05:07 +0100345{
Chen Gang237f1232013-10-26 15:07:04 +0100346 long long oldval;
Will Deacon24b44a62010-01-20 19:05:07 +0100347 unsigned long res;
348
349 smp_mb();
Will Deaconc32ffce02014-02-21 17:01:48 +0100350 prefetchw(&ptr->counter);
Will Deacon24b44a62010-01-20 19:05:07 +0100351
352 do {
353 __asm__ __volatile__("@ atomic64_cmpxchg\n"
Will Deacon398aa662010-07-08 10:59:16 +0100354 "ldrexd %1, %H1, [%3]\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100355 "mov %0, #0\n"
Will Deacon398aa662010-07-08 10:59:16 +0100356 "teq %1, %4\n"
357 "teqeq %H1, %H4\n"
358 "strexdeq %0, %5, %H5, [%3]"
359 : "=&r" (res), "=&r" (oldval), "+Qo" (ptr->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100360 : "r" (&ptr->counter), "r" (old), "r" (new)
361 : "cc");
362 } while (res);
363
364 smp_mb();
365
366 return oldval;
367}
368
Chen Gang237f1232013-10-26 15:07:04 +0100369static inline long long atomic64_xchg(atomic64_t *ptr, long long new)
Will Deacon24b44a62010-01-20 19:05:07 +0100370{
Chen Gang237f1232013-10-26 15:07:04 +0100371 long long result;
Will Deacon24b44a62010-01-20 19:05:07 +0100372 unsigned long tmp;
373
374 smp_mb();
Will Deaconc32ffce02014-02-21 17:01:48 +0100375 prefetchw(&ptr->counter);
Will Deacon24b44a62010-01-20 19:05:07 +0100376
377 __asm__ __volatile__("@ atomic64_xchg\n"
Will Deacon398aa662010-07-08 10:59:16 +0100378"1: ldrexd %0, %H0, [%3]\n"
379" strexd %1, %4, %H4, [%3]\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100380" teq %1, #0\n"
381" bne 1b"
Will Deacon398aa662010-07-08 10:59:16 +0100382 : "=&r" (result), "=&r" (tmp), "+Qo" (ptr->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100383 : "r" (&ptr->counter), "r" (new)
384 : "cc");
385
386 smp_mb();
387
388 return result;
389}
390
Chen Gang237f1232013-10-26 15:07:04 +0100391static inline long long atomic64_dec_if_positive(atomic64_t *v)
Will Deacon24b44a62010-01-20 19:05:07 +0100392{
Chen Gang237f1232013-10-26 15:07:04 +0100393 long long result;
Will Deacon24b44a62010-01-20 19:05:07 +0100394 unsigned long tmp;
395
396 smp_mb();
Will Deaconc32ffce02014-02-21 17:01:48 +0100397 prefetchw(&v->counter);
Will Deacon24b44a62010-01-20 19:05:07 +0100398
399 __asm__ __volatile__("@ atomic64_dec_if_positive\n"
Will Deacon398aa662010-07-08 10:59:16 +0100400"1: ldrexd %0, %H0, [%3]\n"
Victor Kamensky2245f922013-07-26 09:28:53 -0700401" subs %Q0, %Q0, #1\n"
402" sbc %R0, %R0, #0\n"
403" teq %R0, #0\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100404" bmi 2f\n"
Will Deacon398aa662010-07-08 10:59:16 +0100405" strexd %1, %0, %H0, [%3]\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100406" teq %1, #0\n"
407" bne 1b\n"
408"2:"
Will Deacon398aa662010-07-08 10:59:16 +0100409 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100410 : "r" (&v->counter)
411 : "cc");
412
413 smp_mb();
414
415 return result;
416}
417
Chen Gang237f1232013-10-26 15:07:04 +0100418static inline int atomic64_add_unless(atomic64_t *v, long long a, long long u)
Will Deacon24b44a62010-01-20 19:05:07 +0100419{
Chen Gang237f1232013-10-26 15:07:04 +0100420 long long val;
Will Deacon24b44a62010-01-20 19:05:07 +0100421 unsigned long tmp;
422 int ret = 1;
423
424 smp_mb();
Will Deaconc32ffce02014-02-21 17:01:48 +0100425 prefetchw(&v->counter);
Will Deacon24b44a62010-01-20 19:05:07 +0100426
427 __asm__ __volatile__("@ atomic64_add_unless\n"
Will Deacon398aa662010-07-08 10:59:16 +0100428"1: ldrexd %0, %H0, [%4]\n"
429" teq %0, %5\n"
430" teqeq %H0, %H5\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100431" moveq %1, #0\n"
432" beq 2f\n"
Victor Kamensky2245f922013-07-26 09:28:53 -0700433" adds %Q0, %Q0, %Q6\n"
434" adc %R0, %R0, %R6\n"
Will Deacon398aa662010-07-08 10:59:16 +0100435" strexd %2, %0, %H0, [%4]\n"
Will Deacon24b44a62010-01-20 19:05:07 +0100436" teq %2, #0\n"
437" bne 1b\n"
438"2:"
Will Deacon398aa662010-07-08 10:59:16 +0100439 : "=&r" (val), "+r" (ret), "=&r" (tmp), "+Qo" (v->counter)
Will Deacon24b44a62010-01-20 19:05:07 +0100440 : "r" (&v->counter), "r" (u), "r" (a)
441 : "cc");
442
443 if (ret)
444 smp_mb();
445
446 return ret;
447}
448
449#define atomic64_add_negative(a, v) (atomic64_add_return((a), (v)) < 0)
450#define atomic64_inc(v) atomic64_add(1LL, (v))
451#define atomic64_inc_return(v) atomic64_add_return(1LL, (v))
452#define atomic64_inc_and_test(v) (atomic64_inc_return(v) == 0)
453#define atomic64_sub_and_test(a, v) (atomic64_sub_return((a), (v)) == 0)
454#define atomic64_dec(v) atomic64_sub(1LL, (v))
455#define atomic64_dec_return(v) atomic64_sub_return(1LL, (v))
456#define atomic64_dec_and_test(v) (atomic64_dec_return((v)) == 0)
457#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1LL, 0LL)
458
Arun Sharma78477772011-07-26 16:09:08 -0700459#endif /* !CONFIG_GENERIC_ATOMIC64 */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700460#endif
461#endif