1 // /usr/libexec/gcc/sh4-unknown-linux-gnu/4.1.1/cc1 -quiet -nostdinc -Iinclude -Iinclude2 -I/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include -I/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc -Idrivers/mmc -D__KERNEL__ -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(mmc_block) -DKBUILD_MODNAME=KBUILD_STR(mmc_block) -isystem /usr/lib/gcc/sh4-unknown-linux-gnu/4.1.1/include -include include/linux/autoconf.h -MD drivers/mmc/.mmc_block.o.d /mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc/mmc_block.c -quiet -dumpbase mmc_block.c -ml -m4 -m4-nofpu -auxbase-strip drivers/mmc/mmc_block.o -Os -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-stack-protector -o - -frandom-seed=0
2 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc/mmc_block.c"
5 # 1 "./include/linux/autoconf.h" 1
7 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc/mmc_block.c"
8 # 19 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc/mmc_block.c"
9 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h" 1
13 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/init.h" 1
17 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler.h" 1
18 # 42 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler.h"
19 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler-gcc4.h" 1
23 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler-gcc.h" 1
24 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler-gcc4.h" 2
25 # 43 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/compiler.h" 2
26 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/init.h" 2
27 # 63 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/init.h"
28 typedef int (*initcall_t)(void);
29 typedef void (*exitcall_t)(void);
31 extern initcall_t __con_initcall_start[], __con_initcall_end[];
32 extern initcall_t __security_initcall_start[], __security_initcall_end[];
35 extern char saved_command_line[];
36 extern unsigned int reset_devices;
39 extern void setup_arch(char **);
40 # 114 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/init.h"
41 struct obs_kernel_param {
43 int (*setup_func)(char *);
46 # 149 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/init.h"
47 void __attribute__ ((__section__ (".init.text"))) parse_early_param(void);
48 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h" 2
49 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/stringify.h" 1
50 # 6 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h" 2
51 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 1
52 # 10 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
53 # 1 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.1.1/include/stdarg.h" 1 3 4
54 # 43 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.1.1/include/stdarg.h" 3 4
55 typedef __builtin_va_list __gnuc_va_list;
56 # 105 "/usr/lib/gcc/sh4-unknown-linux-gnu/4.1.1/include/stdarg.h" 3 4
57 typedef __gnuc_va_list va_list;
58 # 11 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
59 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/linkage.h" 1
63 # 1 "include2/asm/linkage.h" 1
64 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/linkage.h" 2
65 # 12 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
66 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/stddef.h" 1
67 # 15 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/stddef.h"
72 # 13 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
73 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h" 1
74 # 14 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h"
75 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/posix_types.h" 1
76 # 36 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/posix_types.h"
78 unsigned long fds_bits [(1024/(8 * sizeof(unsigned long)))];
82 typedef void (*__kernel_sighandler_t)(int);
85 typedef int __kernel_key_t;
86 typedef int __kernel_mqd_t;
88 # 1 "include2/asm/posix_types.h" 1
89 # 10 "include2/asm/posix_types.h"
90 typedef unsigned long __kernel_ino_t;
91 typedef unsigned short __kernel_mode_t;
92 typedef unsigned short __kernel_nlink_t;
93 typedef long __kernel_off_t;
94 typedef int __kernel_pid_t;
95 typedef unsigned short __kernel_ipc_pid_t;
96 typedef unsigned short __kernel_uid_t;
97 typedef unsigned short __kernel_gid_t;
98 typedef unsigned int __kernel_size_t;
99 typedef int __kernel_ssize_t;
100 typedef int __kernel_ptrdiff_t;
101 typedef long __kernel_time_t;
102 typedef long __kernel_suseconds_t;
103 typedef long __kernel_clock_t;
104 typedef int __kernel_timer_t;
105 typedef int __kernel_clockid_t;
106 typedef int __kernel_daddr_t;
107 typedef char * __kernel_caddr_t;
108 typedef unsigned short __kernel_uid16_t;
109 typedef unsigned short __kernel_gid16_t;
110 typedef unsigned int __kernel_uid32_t;
111 typedef unsigned int __kernel_gid32_t;
113 typedef unsigned short __kernel_old_uid_t;
114 typedef unsigned short __kernel_old_gid_t;
115 typedef unsigned short __kernel_old_dev_t;
118 typedef long long __kernel_loff_t;
132 static __inline__ __attribute__((always_inline)) void __FD_SET(unsigned long __fd, __kernel_fd_set *__fdsetp)
134 unsigned long __tmp = __fd / (8 * sizeof(unsigned long));
135 unsigned long __rem = __fd % (8 * sizeof(unsigned long));
136 __fdsetp->fds_bits[__tmp] |= (1UL<<__rem);
140 static __inline__ __attribute__((always_inline)) void __FD_CLR(unsigned long __fd, __kernel_fd_set *__fdsetp)
142 unsigned long __tmp = __fd / (8 * sizeof(unsigned long));
143 unsigned long __rem = __fd % (8 * sizeof(unsigned long));
144 __fdsetp->fds_bits[__tmp] &= ~(1UL<<__rem);
149 static __inline__ __attribute__((always_inline)) int __FD_ISSET(unsigned long __fd, const __kernel_fd_set *__p)
151 unsigned long __tmp = __fd / (8 * sizeof(unsigned long));
152 unsigned long __rem = __fd % (8 * sizeof(unsigned long));
153 return (__p->fds_bits[__tmp] & (1UL<<__rem)) != 0;
161 static __inline__ __attribute__((always_inline)) void __FD_ZERO(__kernel_fd_set *__p)
163 unsigned long *__tmp = __p->fds_bits;
166 if (__builtin_constant_p((1024/(8 * sizeof(unsigned long))))) {
167 switch ((1024/(8 * sizeof(unsigned long)))) {
169 __tmp[ 0] = 0; __tmp[ 1] = 0;
170 __tmp[ 2] = 0; __tmp[ 3] = 0;
171 __tmp[ 4] = 0; __tmp[ 5] = 0;
172 __tmp[ 6] = 0; __tmp[ 7] = 0;
173 __tmp[ 8] = 0; __tmp[ 9] = 0;
174 __tmp[10] = 0; __tmp[11] = 0;
175 __tmp[12] = 0; __tmp[13] = 0;
176 __tmp[14] = 0; __tmp[15] = 0;
180 __tmp[ 0] = 0; __tmp[ 1] = 0;
181 __tmp[ 2] = 0; __tmp[ 3] = 0;
182 __tmp[ 4] = 0; __tmp[ 5] = 0;
183 __tmp[ 6] = 0; __tmp[ 7] = 0;
187 __tmp[ 0] = 0; __tmp[ 1] = 0;
188 __tmp[ 2] = 0; __tmp[ 3] = 0;
192 __i = (1024/(8 * sizeof(unsigned long)));
199 # 48 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/posix_types.h" 2
200 # 15 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h" 2
201 # 1 "include2/asm/types.h" 1
207 typedef unsigned short umode_t;
214 typedef __signed__ char __s8;
215 typedef unsigned char __u8;
217 typedef __signed__ short __s16;
218 typedef unsigned short __u16;
220 typedef __signed__ int __s32;
221 typedef unsigned int __u32;
224 typedef __signed__ long long __s64;
225 typedef unsigned long long __u64;
226 # 39 "include2/asm/types.h"
227 typedef __signed__ char s8;
228 typedef unsigned char u8;
230 typedef __signed__ short s16;
231 typedef unsigned short u16;
233 typedef __signed__ int s32;
234 typedef unsigned int u32;
236 typedef __signed__ long long s64;
237 typedef unsigned long long u64;
241 typedef u32 dma_addr_t;
244 typedef u64 sector_t;
249 typedef u64 blkcnt_t;
250 # 16 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h" 2
254 typedef __u32 __kernel_dev_t;
256 typedef __kernel_fd_set fd_set;
257 typedef __kernel_dev_t dev_t;
258 typedef __kernel_ino_t ino_t;
259 typedef __kernel_mode_t mode_t;
260 typedef __kernel_nlink_t nlink_t;
261 typedef __kernel_off_t off_t;
262 typedef __kernel_pid_t pid_t;
263 typedef __kernel_daddr_t daddr_t;
264 typedef __kernel_key_t key_t;
265 typedef __kernel_suseconds_t suseconds_t;
266 typedef __kernel_timer_t timer_t;
267 typedef __kernel_clockid_t clockid_t;
268 typedef __kernel_mqd_t mqd_t;
273 typedef __kernel_uid32_t uid_t;
274 typedef __kernel_gid32_t gid_t;
275 typedef __kernel_uid16_t uid16_t;
276 typedef __kernel_gid16_t gid16_t;
280 typedef __kernel_old_uid_t old_uid_t;
281 typedef __kernel_old_gid_t old_gid_t;
282 # 58 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h"
283 typedef __kernel_loff_t loff_t;
284 # 67 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h"
285 typedef __kernel_size_t size_t;
290 typedef __kernel_ssize_t ssize_t;
295 typedef __kernel_ptrdiff_t ptrdiff_t;
300 typedef __kernel_time_t time_t;
305 typedef __kernel_clock_t clock_t;
310 typedef __kernel_caddr_t caddr_t;
314 typedef unsigned char u_char;
315 typedef unsigned short u_short;
316 typedef unsigned int u_int;
317 typedef unsigned long u_long;
320 typedef unsigned char unchar;
321 typedef unsigned short ushort;
322 typedef unsigned int uint;
323 typedef unsigned long ulong;
328 typedef __u8 u_int8_t;
330 typedef __u16 u_int16_t;
331 typedef __s16 int16_t;
332 typedef __u32 u_int32_t;
333 typedef __s32 int32_t;
337 typedef __u8 uint8_t;
338 typedef __u16 uint16_t;
339 typedef __u32 uint32_t;
342 typedef __u64 uint64_t;
343 typedef __u64 u_int64_t;
344 typedef __s64 int64_t;
345 # 175 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/types.h"
346 typedef __u16 __le16;
347 typedef __u16 __be16;
348 typedef __u32 __le32;
349 typedef __u32 __be32;
351 typedef __u64 __le64;
352 typedef __u64 __be64;
356 typedef unsigned gfp_t;
361 typedef u32 resource_size_t;
367 __kernel_daddr_t f_tfree;
368 __kernel_ino_t f_tinode;
372 # 14 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
374 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitops.h" 1
375 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitops.h"
376 # 1 "include2/asm/bitops.h" 1
381 # 1 "include2/asm/system.h" 1
382 # 66 "include2/asm/system.h"
383 static inline __attribute__((always_inline)) void sched_cacheflush(void)
386 # 82 "include2/asm/system.h"
387 static inline __attribute__((always_inline)) unsigned long tas(volatile int *m)
389 unsigned long retval;
391 __asm__ __volatile__ ("tas.b @%1\n\t"
393 : "=r" (retval): "r" (m): "t", "memory");
396 # 136 "include2/asm/system.h"
397 static inline __attribute__((always_inline)) void local_irq_enable(void)
399 unsigned long __dummy0, __dummy1;
401 __asm__ __volatile__("stc sr, %0\n\t"
403 "stc r6_bank, %1\n\t"
406 : "=&r" (__dummy0), "=r" (__dummy1)
410 # 164 "include2/asm/system.h"
411 static inline __attribute__((always_inline)) void local_irq_disable(void)
413 unsigned long __dummy;
414 __asm__ __volatile__("stc sr, %0\n\t"
422 static inline __attribute__((always_inline)) void set_bl_bit(void)
424 unsigned long __dummy0, __dummy1;
426 __asm__ __volatile__ ("stc sr, %0\n\t"
430 : "=&r" (__dummy0), "=r" (__dummy1)
431 : "r" (0x10000000), "r" (0xffffff0f)
435 static inline __attribute__((always_inline)) void clear_bl_bit(void)
437 unsigned long __dummy0, __dummy1;
439 __asm__ __volatile__ ("stc sr, %0\n\t"
442 : "=&r" (__dummy0), "=r" (__dummy1)
446 # 210 "include2/asm/system.h"
447 static inline __attribute__((always_inline)) unsigned long local_irq_save(void)
449 unsigned long flags, __dummy;
451 __asm__ __volatile__("stc sr, %1\n\t"
457 : "=&z" (flags), "=&r" (__dummy)
462 # 270 "include2/asm/system.h"
463 static inline __attribute__((always_inline)) unsigned long xchg_u32(volatile u32 *m, unsigned long val)
465 unsigned long flags, retval;
467 flags = local_irq_save();
470 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
474 static inline __attribute__((always_inline)) unsigned long xchg_u8(volatile u8 *m, unsigned long val)
476 unsigned long flags, retval;
478 flags = local_irq_save();
481 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
485 extern void __xchg_called_with_bad_pointer(void);
486 # 317 "include2/asm/system.h"
487 static inline __attribute__((always_inline)) unsigned long __cmpxchg_u32(volatile int * m, unsigned long old,
493 flags = local_irq_save();
497 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
503 extern void __cmpxchg_called_with_bad_pointer(void);
507 static inline __attribute__((always_inline)) unsigned long __cmpxchg(volatile void * ptr, unsigned long old,
508 unsigned long new, int size)
512 return __cmpxchg_u32(ptr, old, new);
514 __cmpxchg_called_with_bad_pointer();
517 # 360 "include2/asm/system.h"
518 void disable_hlt(void);
519 void enable_hlt(void);
520 # 6 "include2/asm/bitops.h" 2
522 # 1 "include2/asm/byteorder.h" 1
523 # 11 "include2/asm/byteorder.h"
524 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) __u32 ___arch__swab32(__u32 x)
526 __asm__("swap.b %0, %0\n\t"
534 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) __u16 ___arch__swab16(__u16 x)
536 __asm__("swap.b %0, %0"
542 static inline __attribute__((always_inline)) __u64 ___arch__swab64(__u64 val)
545 struct { __u32 a,b; } s;
549 w.s.b = ___arch__swab32(v.s.a);
550 w.s.a = ___arch__swab32(v.s.b);
553 # 51 "include2/asm/byteorder.h"
554 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h" 1
555 # 12 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h"
556 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/swab.h" 1
557 # 133 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/swab.h"
558 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) __u16 __fswab16(__u16 x)
560 return ___arch__swab16(x);
562 static __inline__ __attribute__((always_inline)) __u16 __swab16p(const __u16 *x)
564 return ___arch__swab16(*(x));
566 static __inline__ __attribute__((always_inline)) void __swab16s(__u16 *addr)
568 do { *(addr) = ___arch__swab16(*((addr))); } while (0);
571 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) __u32 __fswab32(__u32 x)
573 return ___arch__swab32(x);
575 static __inline__ __attribute__((always_inline)) __u32 __swab32p(const __u32 *x)
577 return ___arch__swab32(*(x));
579 static __inline__ __attribute__((always_inline)) void __swab32s(__u32 *addr)
581 do { *(addr) = ___arch__swab32(*((addr))); } while (0);
585 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) __u64 __fswab64(__u64 x)
589 __u32 l = x & ((1ULL<<32)-1);
590 return (((__u64)(__builtin_constant_p((__u32)(l)) ? ({ __u32 __x = ((l)); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32((l)))) << 32) | ((__u64)((__builtin_constant_p((__u32)(h)) ? ({ __u32 __x = ((h)); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << 24) | (((__u32)(__x) & (__u32)0x0000ff00UL) << 8) | (((__u32)(__x) & (__u32)0x00ff0000UL) >> 8) | (((__u32)(__x) & (__u32)0xff000000UL) >> 24) )); }) : __fswab32((h)))));
595 static __inline__ __attribute__((always_inline)) __u64 __swab64p(const __u64 *x)
597 return ___arch__swab64(*(x));
599 static __inline__ __attribute__((always_inline)) void __swab64s(__u64 *addr)
601 do { *(addr) = ___arch__swab64(*((addr))); } while (0);
603 # 13 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h" 2
604 # 43 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h"
605 static inline __attribute__((always_inline)) __le64 __cpu_to_le64p(const __u64 *p)
609 static inline __attribute__((always_inline)) __u64 __le64_to_cpup(const __le64 *p)
613 static inline __attribute__((always_inline)) __le32 __cpu_to_le32p(const __u32 *p)
617 static inline __attribute__((always_inline)) __u32 __le32_to_cpup(const __le32 *p)
621 static inline __attribute__((always_inline)) __le16 __cpu_to_le16p(const __u16 *p)
625 static inline __attribute__((always_inline)) __u16 __le16_to_cpup(const __le16 *p)
629 static inline __attribute__((always_inline)) __be64 __cpu_to_be64p(const __u64 *p)
631 return ( __be64)__swab64p(p);
633 static inline __attribute__((always_inline)) __u64 __be64_to_cpup(const __be64 *p)
635 return __swab64p((__u64 *)p);
637 static inline __attribute__((always_inline)) __be32 __cpu_to_be32p(const __u32 *p)
639 return ( __be32)__swab32p(p);
641 static inline __attribute__((always_inline)) __u32 __be32_to_cpup(const __be32 *p)
643 return __swab32p((__u32 *)p);
645 static inline __attribute__((always_inline)) __be16 __cpu_to_be16p(const __u16 *p)
647 return ( __be16)__swab16p(p);
649 static inline __attribute__((always_inline)) __u16 __be16_to_cpup(const __be16 *p)
651 return __swab16p((__u16 *)p);
653 # 104 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h"
654 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/generic.h" 1
655 # 154 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/generic.h"
656 extern __u32 ntohl(__be32);
657 extern __be32 htonl(__u32);
658 extern __u16 ntohs(__be16);
659 extern __be16 htons(__u16);
660 # 105 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/byteorder/little_endian.h" 2
661 # 52 "include2/asm/byteorder.h" 2
662 # 8 "include2/asm/bitops.h" 2
664 static inline __attribute__((always_inline)) void set_bit(int nr, volatile void * addr)
667 volatile unsigned int *a = addr;
671 mask = 1 << (nr & 0x1f);
672 flags = local_irq_save();
674 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
682 static inline __attribute__((always_inline)) void clear_bit(int nr, volatile void * addr)
685 volatile unsigned int *a = addr;
689 mask = 1 << (nr & 0x1f);
690 flags = local_irq_save();
692 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
695 static inline __attribute__((always_inline)) void change_bit(int nr, volatile void * addr)
698 volatile unsigned int *a = addr;
702 mask = 1 << (nr & 0x1f);
703 flags = local_irq_save();
705 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
708 static inline __attribute__((always_inline)) int test_and_set_bit(int nr, volatile void * addr)
711 volatile unsigned int *a = addr;
715 mask = 1 << (nr & 0x1f);
716 flags = local_irq_save();
717 retval = (mask & *a) != 0;
719 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
724 static inline __attribute__((always_inline)) int test_and_clear_bit(int nr, volatile void * addr)
727 volatile unsigned int *a = addr;
731 mask = 1 << (nr & 0x1f);
732 flags = local_irq_save();
733 retval = (mask & *a) != 0;
735 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
740 static inline __attribute__((always_inline)) int test_and_change_bit(int nr, volatile void * addr)
743 volatile unsigned int *a = addr;
747 mask = 1 << (nr & 0x1f);
748 flags = local_irq_save();
749 retval = (mask & *a) != 0;
751 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
756 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/non-atomic.h" 1
757 # 18 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/non-atomic.h"
758 static inline __attribute__((always_inline)) void __set_bit(int nr, volatile unsigned long *addr)
760 unsigned long mask = (1UL << ((nr) % 32));
761 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
766 static inline __attribute__((always_inline)) void __clear_bit(int nr, volatile unsigned long *addr)
768 unsigned long mask = (1UL << ((nr) % 32));
769 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
773 # 43 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/non-atomic.h"
774 static inline __attribute__((always_inline)) void __change_bit(int nr, volatile unsigned long *addr)
776 unsigned long mask = (1UL << ((nr) % 32));
777 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
781 # 60 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/non-atomic.h"
782 static inline __attribute__((always_inline)) int __test_and_set_bit(int nr, volatile unsigned long *addr)
784 unsigned long mask = (1UL << ((nr) % 32));
785 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
786 unsigned long old = *p;
789 return (old & mask) != 0;
791 # 79 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/non-atomic.h"
792 static inline __attribute__((always_inline)) int __test_and_clear_bit(int nr, volatile unsigned long *addr)
794 unsigned long mask = (1UL << ((nr) % 32));
795 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
796 unsigned long old = *p;
799 return (old & mask) != 0;
803 static inline __attribute__((always_inline)) int __test_and_change_bit(int nr,
804 volatile unsigned long *addr)
806 unsigned long mask = (1UL << ((nr) % 32));
807 unsigned long *p = ((unsigned long *)addr) + ((nr) / 32);
808 unsigned long old = *p;
811 return (old & mask) != 0;
819 static inline __attribute__((always_inline)) int test_bit(int nr, const volatile unsigned long *addr)
821 return 1UL & (addr[((nr) / 32)] >> (nr & (32 -1)));
823 # 102 "include2/asm/bitops.h" 2
825 static inline __attribute__((always_inline)) unsigned long ffz(unsigned long word)
827 unsigned long result;
833 : "=r" (result), "=r" (word)
834 : "0" (~0L), "1" (word)
845 static inline __attribute__((always_inline)) unsigned long __ffs(unsigned long word)
847 unsigned long result;
853 : "=r" (result), "=r" (word)
854 : "0" (~0L), "1" (word)
859 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/find.h" 1
863 extern unsigned long find_next_bit(const unsigned long *addr, unsigned long
864 size, unsigned long offset);
866 extern unsigned long find_next_zero_bit(const unsigned long *addr, unsigned
867 long size, unsigned long offset);
868 # 138 "include2/asm/bitops.h" 2
869 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/ffs.h" 1
870 # 12 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/ffs.h"
871 static inline __attribute__((always_inline)) int ffs(int x)
899 # 139 "include2/asm/bitops.h" 2
900 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/hweight.h" 1
906 extern unsigned int hweight32(unsigned int w);
907 extern unsigned int hweight16(unsigned int w);
908 extern unsigned int hweight8(unsigned int w);
909 extern unsigned long hweight64(__u64 w);
910 # 140 "include2/asm/bitops.h" 2
911 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/sched.h" 1
912 # 13 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/sched.h"
913 static inline __attribute__((always_inline)) int sched_find_first_bit(const unsigned long *b)
922 if (__builtin_expect(!!(b[0]), 0))
924 if (__builtin_expect(!!(b[1]), 0))
925 return __ffs(b[1]) + 32;
926 if (__builtin_expect(!!(b[2]), 0))
927 return __ffs(b[2]) + 64;
929 return __ffs(b[3]) + 96;
930 return __ffs(b[4]) + 128;
935 # 141 "include2/asm/bitops.h" 2
936 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/ext2-non-atomic.h" 1
940 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/le.h" 1
941 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/ext2-non-atomic.h" 2
942 # 142 "include2/asm/bitops.h" 2
943 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/ext2-atomic.h" 1
944 # 143 "include2/asm/bitops.h" 2
945 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/minix.h" 1
946 # 144 "include2/asm/bitops.h" 2
947 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/fls.h" 1
948 # 12 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/fls.h"
949 static inline __attribute__((always_inline)) int fls(int x)
955 if (!(x & 0xffff0000u)) {
959 if (!(x & 0xff000000u)) {
963 if (!(x & 0xf0000000u)) {
967 if (!(x & 0xc0000000u)) {
971 if (!(x & 0x80000000u)) {
977 # 145 "include2/asm/bitops.h" 2
978 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bitops/fls64.h" 1
984 static inline __attribute__((always_inline)) int fls64(__u64 x)
991 # 146 "include2/asm/bitops.h" 2
992 # 10 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitops.h" 2
994 static __inline__ __attribute__((always_inline)) int get_bitmask_order(unsigned int count)
1002 static __inline__ __attribute__((always_inline)) int get_count_order(unsigned int count)
1006 order = fls(count) - 1;
1007 if (count & (count - 1))
1012 static inline __attribute__((always_inline)) unsigned long hweight_long(unsigned long w)
1014 return sizeof(w) == 4 ? hweight32(w) : hweight64(w);
1023 static inline __attribute__((always_inline)) __u32 rol32(__u32 word, unsigned int shift)
1025 return (word << shift) | (word >> (32 - shift));
1034 static inline __attribute__((always_inline)) __u32 ror32(__u32 word, unsigned int shift)
1036 return (word >> shift) | (word << (32 - shift));
1039 static inline __attribute__((always_inline)) unsigned fls_long(unsigned long l)
1045 # 16 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
1047 # 1 "include2/asm/bug.h" 1
1048 # 17 "include2/asm/bug.h"
1049 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/bug.h" 1
1050 # 18 "include2/asm/bug.h" 2
1051 # 18 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h" 2
1053 extern const char linux_banner[];
1054 # 48 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
1055 extern int console_printk[];
1065 # 96 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
1066 extern struct atomic_notifier_head panic_notifier_list;
1067 extern long (*panic_blink)(long time);
1068 void panic(const char * fmt, ...)
1069 __attribute__ ((noreturn, format (printf, 1, 2)));
1070 extern void oops_enter(void);
1071 extern void oops_exit(void);
1072 extern int oops_may_print(void);
1073 void do_exit(long error_code)
1074 __attribute__((noreturn));
1075 void complete_and_exit(struct completion *, long)
1076 __attribute__((noreturn));
1077 extern unsigned long simple_strtoul(const char *,char **,unsigned int);
1078 extern long simple_strtol(const char *,char **,unsigned int);
1079 extern unsigned long long simple_strtoull(const char *,char **,unsigned int);
1080 extern long long simple_strtoll(const char *,char **,unsigned int);
1081 extern int sprintf(char * buf, const char * fmt, ...)
1082 __attribute__ ((format (printf, 2, 3)));
1083 extern int vsprintf(char *buf, const char *, va_list)
1084 __attribute__ ((format (printf, 2, 0)));
1085 extern int snprintf(char * buf, size_t size, const char * fmt, ...)
1086 __attribute__ ((format (printf, 3, 4)));
1087 extern int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
1088 __attribute__ ((format (printf, 3, 0)));
1089 extern int scnprintf(char * buf, size_t size, const char * fmt, ...)
1090 __attribute__ ((format (printf, 3, 4)));
1091 extern int vscnprintf(char *buf, size_t size, const char *fmt, va_list args)
1092 __attribute__ ((format (printf, 3, 0)));
1093 extern char *kasprintf(gfp_t gfp, const char *fmt, ...)
1094 __attribute__ ((format (printf, 2, 3)));
1096 extern int sscanf(const char *, const char *, ...)
1097 __attribute__ ((format (scanf, 2, 3)));
1098 extern int vsscanf(const char *, const char *, va_list)
1099 __attribute__ ((format (scanf, 2, 0)));
1101 extern int get_option(char **str, int *pint);
1102 extern char *get_options(const char *str, int nints, int *ints);
1103 extern unsigned long long memparse(char *ptr, char **retptr);
1105 extern int core_kernel_text(unsigned long addr);
1106 extern int __kernel_text_address(unsigned long addr);
1107 extern int kernel_text_address(unsigned long addr);
1108 extern int session_of_pgrp(int pgrp);
1110 extern void dump_thread(struct pt_regs *regs, struct user *dump);
1113 int vprintk(const char *fmt, va_list args)
1114 __attribute__ ((format (printf, 1, 0)));
1115 int printk(const char * fmt, ...)
1116 __attribute__ ((format (printf, 1, 2)));
1117 # 156 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
1118 unsigned long int_sqrt(unsigned long);
1120 static inline __attribute__((always_inline)) int __attribute__((pure)) long_log2(unsigned long x)
1123 for (x >>= 1; x > 0; x >>= 1)
1128 static inline __attribute__((always_inline)) unsigned long
1129 __attribute__((__const__)) roundup_pow_of_two(unsigned long x)
1131 return 1UL << fls_long(x - 1);
1134 extern int printk_ratelimit(void);
1135 extern int __printk_ratelimit(int ratelimit_jiffies, int ratelimit_burst);
1137 static inline __attribute__((always_inline)) void console_silent(void)
1139 (console_printk[0]) = 0;
1142 static inline __attribute__((always_inline)) void console_verbose(void)
1144 if ((console_printk[0]))
1145 (console_printk[0]) = 15;
1148 extern void bust_spinlocks(int yes);
1149 extern int oops_in_progress;
1150 extern int panic_timeout;
1151 extern int panic_on_oops;
1152 extern int panic_on_unrecovered_nmi;
1154 extern const char *print_tainted(void);
1155 extern void add_taint(unsigned);
1158 extern enum system_states {
1164 SYSTEM_SUSPEND_DISK,
1166 # 212 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
1167 extern void dump_stack(void);
1174 static inline __attribute__((always_inline)) int __attribute__ ((format (printf, 1, 2))) pr_debug(const char * fmt, ...)
1178 # 326 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kernel.h"
1181 unsigned long loads[3];
1182 unsigned long totalram;
1183 unsigned long freeram;
1184 unsigned long sharedram;
1185 unsigned long bufferram;
1186 unsigned long totalswap;
1187 unsigned long freeswap;
1188 unsigned short procs;
1190 unsigned long totalhigh;
1191 unsigned long freehigh;
1192 unsigned int mem_unit;
1193 char _f[20-2*sizeof(long)-sizeof(int)];
1195 # 7 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h" 2
1196 # 29 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h"
1197 struct kernel_param;
1200 typedef int (*param_set_fn)(const char *val, struct kernel_param *kp);
1202 typedef int (*param_get_fn)(char *buffer, struct kernel_param *kp);
1204 struct kernel_param {
1213 struct kparam_string {
1214 unsigned int maxlen;
1225 unsigned int elemsize;
1228 # 95 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h"
1229 extern int parse_args(const char *name,
1231 struct kernel_param *params,
1233 int (*unknown)(char *param, char *val));
1241 extern int param_set_byte(const char *val, struct kernel_param *kp);
1242 extern int param_get_byte(char *buffer, struct kernel_param *kp);
1245 extern int param_set_short(const char *val, struct kernel_param *kp);
1246 extern int param_get_short(char *buffer, struct kernel_param *kp);
1249 extern int param_set_ushort(const char *val, struct kernel_param *kp);
1250 extern int param_get_ushort(char *buffer, struct kernel_param *kp);
1253 extern int param_set_int(const char *val, struct kernel_param *kp);
1254 extern int param_get_int(char *buffer, struct kernel_param *kp);
1257 extern int param_set_uint(const char *val, struct kernel_param *kp);
1258 extern int param_get_uint(char *buffer, struct kernel_param *kp);
1261 extern int param_set_long(const char *val, struct kernel_param *kp);
1262 extern int param_get_long(char *buffer, struct kernel_param *kp);
1265 extern int param_set_ulong(const char *val, struct kernel_param *kp);
1266 extern int param_get_ulong(char *buffer, struct kernel_param *kp);
1269 extern int param_set_charp(const char *val, struct kernel_param *kp);
1270 extern int param_get_charp(char *buffer, struct kernel_param *kp);
1273 extern int param_set_bool(const char *val, struct kernel_param *kp);
1274 extern int param_get_bool(char *buffer, struct kernel_param *kp);
1277 extern int param_set_invbool(const char *val, struct kernel_param *kp);
1278 extern int param_get_invbool(char *buffer, struct kernel_param *kp);
1279 # 159 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/moduleparam.h"
1280 extern int param_array_set(const char *val, struct kernel_param *kp);
1281 extern int param_array_get(char *buffer, struct kernel_param *kp);
1283 extern int param_set_copystring(const char *val, struct kernel_param *kp);
1284 extern int param_get_string(char *buffer, struct kernel_param *kp);
1290 extern int module_param_sysfs_setup(struct module *mod,
1291 struct kernel_param *kparam,
1292 unsigned int num_params);
1294 extern void module_param_sysfs_remove(struct module *mod);
1295 # 20 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/drivers/mmc/mmc_block.c" 2
1296 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/module.h" 1
1297 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/module.h"
1298 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 1
1302 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/auxvec.h" 1
1306 # 1 "include2/asm/auxvec.h" 1
1307 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/auxvec.h" 2
1308 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
1309 # 40 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h"
1310 struct sched_param {
1314 # 1 "include2/asm/param.h" 1
1315 # 45 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
1317 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h" 1
1318 # 32 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h"
1319 typedef struct __user_cap_header_struct {
1322 } *cap_user_header_t;
1324 typedef struct __user_cap_data_struct {
1332 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 1
1333 # 49 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h"
1334 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/preempt.h" 1
1335 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/preempt.h"
1336 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/thread_info.h" 1
1337 # 13 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/thread_info.h"
1338 struct restart_block {
1339 long (*fn)(struct restart_block *);
1340 unsigned long arg0, arg1, arg2, arg3;
1343 extern long do_no_restart_syscall(struct restart_block *parm);
1346 # 1 "include2/asm/thread_info.h" 1
1347 # 13 "include2/asm/thread_info.h"
1348 # 1 "include2/asm/page.h" 1
1349 # 44 "include2/asm/page.h"
1350 extern void (*clear_page)(void *to);
1351 extern void (*copy_page)(void *to, void *from);
1353 extern unsigned long shm_align_mask;
1356 extern void clear_page_slow(void *to);
1357 extern void copy_page_slow(void *to, void *from);
1366 extern void clear_user_page(void *to, unsigned long address, struct page *pg);
1367 extern void copy_user_page(void *to, void *from, unsigned long address, struct page *pg);
1368 extern void __clear_user_page(void *to, void *orig_to);
1369 extern void __copy_user_page(void *to, void *from, void *orig_to);
1370 # 72 "include2/asm/page.h"
1371 typedef struct { unsigned long pte; } pte_t;
1372 typedef struct { unsigned long pgd; } pgd_t;
1373 typedef struct { unsigned long pgprot; } pgprot_t;
1374 # 119 "include2/asm/page.h"
1375 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/memory_model.h" 1
1376 # 120 "include2/asm/page.h" 2
1377 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/page.h" 1
1378 # 10 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/page.h"
1379 static __inline__ __attribute__((always_inline)) __attribute__((__const__)) int get_order(unsigned long size)
1383 size = (size - 1) >> (12 - 1);
1391 # 121 "include2/asm/page.h" 2
1392 # 14 "include2/asm/thread_info.h" 2
1395 # 1 "include2/asm/processor.h" 1
1396 # 15 "include2/asm/processor.h"
1397 # 1 "include2/asm/cache.h" 1
1398 # 12 "include2/asm/cache.h"
1399 # 1 "include/asm/cpu/cache.h" 1
1400 # 13 "include2/asm/cache.h" 2
1401 # 24 "include2/asm/cache.h"
1405 unsigned int linesz;
1407 unsigned int way_size;
1413 unsigned int way_incr;
1414 unsigned int entry_shift;
1415 unsigned int entry_mask;
1422 unsigned int alias_mask;
1424 unsigned int n_aliases;
1426 unsigned long flags;
1428 # 16 "include2/asm/processor.h" 2
1429 # 1 "include2/asm/ptrace.h" 1
1430 # 52 "include2/asm/ptrace.h"
1432 unsigned long regs[16];
1469 extern void show_regs(struct pt_regs *);
1470 # 102 "include2/asm/ptrace.h"
1471 static inline __attribute__((always_inline)) unsigned long profile_pc(struct pt_regs *regs)
1473 unsigned long pc = ((regs)->pc);
1475 if (pc >= 0xa0000000UL && pc < 0xc0000000UL)
1479 # 17 "include2/asm/processor.h" 2
1480 # 1 "include2/asm/cpu-features.h" 1
1481 # 18 "include2/asm/processor.h" 2
1482 # 37 "include2/asm/processor.h"
1488 CPU_SH7705, CPU_SH7706, CPU_SH7707,
1489 CPU_SH7708, CPU_SH7708S, CPU_SH7708R,
1490 CPU_SH7709, CPU_SH7709A, CPU_SH7710,
1491 CPU_SH7729, CPU_SH7300,
1494 CPU_SH7750, CPU_SH7750S, CPU_SH7750R, CPU_SH7751, CPU_SH7751R,
1495 CPU_SH7760, CPU_ST40RA, CPU_ST40GX1, CPU_SH4_202, CPU_SH4_501,
1496 CPU_SH73180, CPU_SH7343, CPU_SH7770, CPU_SH7780, CPU_SH7781,
1504 unsigned long loops_per_jiffy;
1506 struct cache_info icache;
1507 struct cache_info dcache;
1508 struct cache_info scache;
1510 unsigned long flags;
1511 } __attribute__ ((aligned((1 << 5))));
1513 extern struct sh_cpuinfo boot_cpu_data;
1514 # 107 "include2/asm/processor.h"
1515 struct sh_fpu_hard_struct {
1516 unsigned long fp_regs[16];
1517 unsigned long xfp_regs[16];
1518 unsigned long fpscr;
1525 struct sh_fpu_soft_struct {
1526 unsigned long fp_regs[16];
1527 unsigned long xfp_regs[16];
1528 unsigned long fpscr;
1531 unsigned char lookahead;
1532 unsigned long entry_pc;
1535 union sh_fpu_union {
1536 struct sh_fpu_hard_struct hard;
1537 struct sh_fpu_soft_struct soft;
1540 struct thread_struct {
1544 unsigned long trap_no, error_code;
1545 unsigned long address;
1547 unsigned long ubc_pc;
1550 union sh_fpu_union fpu;
1558 extern int ubc_usercnt;
1559 # 172 "include2/asm/processor.h"
1564 extern void release_thread(struct task_struct *);
1572 extern int kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
1573 # 194 "include2/asm/processor.h"
1574 static __inline__ __attribute__((always_inline)) void disable_fpu(void)
1576 unsigned long __dummy;
1579 __asm__ __volatile__("stc sr, %0\n\t"
1583 : "r" (0x00008000));
1586 static __inline__ __attribute__((always_inline)) void enable_fpu(void)
1588 unsigned long __dummy;
1591 __asm__ __volatile__("stc sr, %0\n\t"
1595 : "r" (~0x00008000));
1598 static __inline__ __attribute__((always_inline)) void release_fpu(struct pt_regs *regs)
1600 regs->sr |= 0x00008000;
1603 static __inline__ __attribute__((always_inline)) void grab_fpu(struct pt_regs *regs)
1605 regs->sr &= ~0x00008000;
1609 extern void save_fpu(struct task_struct *__tsk, struct pt_regs *regs);
1610 # 258 "include2/asm/processor.h"
1611 extern unsigned long get_wchan(struct task_struct *p);
1612 # 271 "include2/asm/processor.h"
1613 static inline __attribute__((always_inline)) void prefetch(void *x)
1615 __asm__ __volatile__ ("pref @%0\n\t" : : "r" (x) : "memory");
1622 extern int vsyscall_init(void);
1623 # 17 "include2/asm/thread_info.h" 2
1625 struct thread_info {
1626 struct task_struct *task;
1627 struct exec_domain *exec_domain;
1628 unsigned long flags;
1631 mm_segment_t addr_limit;
1632 struct restart_block restart_block;
1633 unsigned long previous_sp;
1635 __u8 supervisor_stack[0];
1637 # 63 "include2/asm/thread_info.h"
1638 register unsigned long current_stack_pointer asm("r15") __attribute__((__used__));
1641 static inline __attribute__((always_inline)) struct thread_info *current_thread_info(void)
1643 struct thread_info *ti;
1645 __asm__("stc r7_bank, %0" : "=r" (ti));
1646 # 82 "include2/asm/thread_info.h"
1649 # 22 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/thread_info.h" 2
1650 # 30 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/thread_info.h"
1651 static inline __attribute__((always_inline)) void set_ti_thread_flag(struct thread_info *ti, int flag)
1653 set_bit(flag,&ti->flags);
1656 static inline __attribute__((always_inline)) void clear_ti_thread_flag(struct thread_info *ti, int flag)
1658 clear_bit(flag,&ti->flags);
1661 static inline __attribute__((always_inline)) int test_and_set_ti_thread_flag(struct thread_info *ti, int flag)
1663 return test_and_set_bit(flag,&ti->flags);
1666 static inline __attribute__((always_inline)) int test_and_clear_ti_thread_flag(struct thread_info *ti, int flag)
1668 return test_and_clear_bit(flag,&ti->flags);
1671 static inline __attribute__((always_inline)) int test_ti_thread_flag(struct thread_info *ti, int flag)
1673 return test_bit(flag,&ti->flags);
1675 # 10 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/preempt.h" 2
1676 # 50 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 2
1677 # 78 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h"
1678 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h" 1
1679 # 12 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h"
1680 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/lockdep.h" 1
1681 # 243 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/lockdep.h"
1682 static inline __attribute__((always_inline)) void lockdep_off(void)
1686 static inline __attribute__((always_inline)) void lockdep_on(void)
1690 static inline __attribute__((always_inline)) int lockdep_internal(void)
1694 # 270 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/lockdep.h"
1695 struct lock_class_key { };
1696 # 13 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h" 2
1701 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types_up.h" 1
1702 # 29 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types_up.h"
1703 typedef struct { } raw_spinlock_t;
1715 # 18 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h" 2
1719 raw_spinlock_t raw_lock;
1720 # 32 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h"
1726 raw_rwlock_t raw_lock;
1727 # 48 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_types.h"
1729 # 79 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 2
1731 extern int __attribute__((section(".spinlock.text"))) generic__raw_read_trylock(raw_rwlock_t *lock);
1739 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_up.h" 1
1740 # 89 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 2
1741 # 134 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h"
1742 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock_api_up.h" 1
1743 # 135 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 2
1744 # 259 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h"
1745 # 1 "include2/asm/atomic.h" 1
1746 # 10 "include2/asm/atomic.h"
1747 typedef struct { volatile int counter; } atomic_t;
1748 # 25 "include2/asm/atomic.h"
1749 static inline __attribute__((always_inline)) void atomic_add(int i, atomic_t *v)
1751 # 39 "include2/asm/atomic.h"
1752 unsigned long flags;
1754 flags = local_irq_save();
1756 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1760 static inline __attribute__((always_inline)) void atomic_sub(int i, atomic_t *v)
1762 # 61 "include2/asm/atomic.h"
1763 unsigned long flags;
1765 flags = local_irq_save();
1767 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1770 # 77 "include2/asm/atomic.h"
1771 static inline __attribute__((always_inline)) int atomic_add_return(int i, atomic_t *v)
1774 # 92 "include2/asm/atomic.h"
1775 unsigned long flags;
1777 flags = local_irq_save();
1781 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1789 static inline __attribute__((always_inline)) int atomic_sub_return(int i, atomic_t *v)
1792 # 121 "include2/asm/atomic.h"
1793 unsigned long flags;
1795 flags = local_irq_save();
1799 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1804 # 152 "include2/asm/atomic.h"
1805 static inline __attribute__((always_inline)) int atomic_cmpxchg(atomic_t *v, int old, int new)
1808 unsigned long flags;
1810 flags = local_irq_save();
1812 if (__builtin_expect(!!(ret == old), 1))
1814 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1821 static inline __attribute__((always_inline)) int atomic_add_unless(atomic_t *v, int a, int u)
1824 unsigned long flags;
1826 flags = local_irq_save();
1830 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1836 static inline __attribute__((always_inline)) void atomic_clear_mask(unsigned int mask, atomic_t *v)
1838 # 197 "include2/asm/atomic.h"
1839 unsigned long flags;
1841 flags = local_irq_save();
1842 *(long *)v &= ~mask;
1843 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1847 static inline __attribute__((always_inline)) void atomic_set_mask(unsigned int mask, atomic_t *v)
1849 # 219 "include2/asm/atomic.h"
1850 unsigned long flags;
1852 flags = local_irq_save();
1854 do { if ((flags & 0x000000f0) != 0x000000f0) local_irq_enable(); } while (0);
1864 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/atomic.h" 1
1865 # 71 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/atomic.h"
1866 typedef atomic_t atomic_long_t;
1869 static inline __attribute__((always_inline)) long atomic_long_read(atomic_long_t *l)
1871 atomic_t *v = (atomic_t *)l;
1873 return (long)((v)->counter);
1876 static inline __attribute__((always_inline)) void atomic_long_set(atomic_long_t *l, long i)
1878 atomic_t *v = (atomic_t *)l;
1880 ((v)->counter = (i));
1883 static inline __attribute__((always_inline)) void atomic_long_inc(atomic_long_t *l)
1885 atomic_t *v = (atomic_t *)l;
1890 static inline __attribute__((always_inline)) void atomic_long_dec(atomic_long_t *l)
1892 atomic_t *v = (atomic_t *)l;
1897 static inline __attribute__((always_inline)) void atomic_long_add(long i, atomic_long_t *l)
1899 atomic_t *v = (atomic_t *)l;
1904 static inline __attribute__((always_inline)) void atomic_long_sub(long i, atomic_long_t *l)
1906 atomic_t *v = (atomic_t *)l;
1910 # 234 "include2/asm/atomic.h" 2
1911 # 260 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/spinlock.h" 2
1917 extern int _atomic_dec_and_lock(atomic_t *atomic, spinlock_t *lock);
1918 # 46 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h" 2
1919 # 1 "include2/asm/current.h" 1
1920 # 11 "include2/asm/current.h"
1923 static __inline__ __attribute__((always_inline)) struct task_struct * get_current(void)
1925 return current_thread_info()->task;
1927 # 47 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h" 2
1928 # 58 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h"
1929 typedef __u32 kernel_cap_t;
1930 # 295 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h"
1931 extern kernel_cap_t cap_bset;
1932 # 323 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h"
1933 static inline __attribute__((always_inline)) kernel_cap_t cap_combine(kernel_cap_t a, kernel_cap_t b)
1940 static inline __attribute__((always_inline)) kernel_cap_t cap_intersect(kernel_cap_t a, kernel_cap_t b)
1947 static inline __attribute__((always_inline)) kernel_cap_t cap_drop(kernel_cap_t a, kernel_cap_t drop)
1950 (dest) = (a) & ~(drop);
1954 static inline __attribute__((always_inline)) kernel_cap_t cap_invert(kernel_cap_t c)
1960 # 360 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/capability.h"
1961 int capable(int cap);
1962 int __capable(struct task_struct *t, int cap);
1963 # 47 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
1964 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/threads.h" 1
1965 # 48 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
1968 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h" 1
1969 # 57 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h"
1970 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h" 1
1977 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/seqlock.h" 1
1978 # 32 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/seqlock.h"
1983 # 57 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/seqlock.h"
1984 static inline __attribute__((always_inline)) void write_seqlock(seqlock_t *sl)
1986 do { do { } while (0); (void)0; (void)(&sl->lock); } while (0);
1988 __asm__ __volatile__("": : :"memory");
1991 static inline __attribute__((always_inline)) void write_sequnlock(seqlock_t *sl)
1993 __asm__ __volatile__("": : :"memory");
1995 do { do { } while (0); (void)0; (void)(&sl->lock); } while (0);
1998 static inline __attribute__((always_inline)) int write_tryseqlock(seqlock_t *sl)
2000 int ret = (({ do { do { } while (0); (void)0; (void)(&sl->lock); } while (0); 1; }));
2004 __asm__ __volatile__("": : :"memory");
2010 static inline __attribute__((always_inline)) __attribute__((always_inline)) unsigned read_seqbegin(const seqlock_t *sl)
2012 unsigned ret = sl->sequence;
2013 __asm__ __volatile__("": : :"memory");
2016 # 98 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/seqlock.h"
2017 static inline __attribute__((always_inline)) __attribute__((always_inline)) int read_seqretry(const seqlock_t *sl, unsigned iv)
2019 __asm__ __volatile__("": : :"memory");
2020 return (iv & 1) | (sl->sequence ^ iv);
2022 # 112 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/seqlock.h"
2023 typedef struct seqcount {
2031 static inline __attribute__((always_inline)) unsigned read_seqcount_begin(const seqcount_t *s)
2033 unsigned ret = s->sequence;
2034 __asm__ __volatile__("": : :"memory");
2043 static inline __attribute__((always_inline)) int read_seqcount_retry(const seqcount_t *s, unsigned iv)
2045 __asm__ __volatile__("": : :"memory");
2046 return (iv & 1) | (s->sequence ^ iv);
2054 static inline __attribute__((always_inline)) void write_seqcount_begin(seqcount_t *s)
2057 __asm__ __volatile__("": : :"memory");
2060 static inline __attribute__((always_inline)) void write_seqcount_end(seqcount_t *s)
2062 __asm__ __volatile__("": : :"memory");
2065 # 8 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h" 2
2078 suseconds_t tv_usec;
2085 # 39 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h"
2086 static inline __attribute__((always_inline)) int timespec_equal(struct timespec *a, struct timespec *b)
2088 return (a->tv_sec == b->tv_sec) && (a->tv_nsec == b->tv_nsec);
2096 static inline __attribute__((always_inline)) int timespec_compare(struct timespec *lhs, struct timespec *rhs)
2098 if (lhs->tv_sec < rhs->tv_sec)
2100 if (lhs->tv_sec > rhs->tv_sec)
2102 return lhs->tv_nsec - rhs->tv_nsec;
2105 static inline __attribute__((always_inline)) int timeval_compare(struct timeval *lhs, struct timeval *rhs)
2107 if (lhs->tv_sec < rhs->tv_sec)
2109 if (lhs->tv_sec > rhs->tv_sec)
2111 return lhs->tv_usec - rhs->tv_usec;
2114 extern unsigned long mktime(const unsigned int year, const unsigned int mon,
2115 const unsigned int day, const unsigned int hour,
2116 const unsigned int min, const unsigned int sec);
2118 extern void set_normalized_timespec(struct timespec *ts, time_t sec, long nsec);
2123 static inline __attribute__((always_inline)) struct timespec timespec_sub(struct timespec lhs,
2124 struct timespec rhs)
2126 struct timespec ts_delta;
2127 set_normalized_timespec(&ts_delta, lhs.tv_sec - rhs.tv_sec,
2128 lhs.tv_nsec - rhs.tv_nsec);
2138 extern struct timespec xtime;
2139 extern struct timespec wall_to_monotonic;
2140 extern seqlock_t xtime_lock;
2142 void timekeeping_init(void);
2144 static inline __attribute__((always_inline)) unsigned long get_seconds(void)
2146 return xtime.tv_sec;
2149 struct timespec current_kernel_time(void);
2154 extern void do_gettimeofday(struct timeval *tv);
2155 extern int do_settimeofday(struct timespec *tv);
2156 extern int do_sys_settimeofday(struct timespec *tv, struct timezone *tz);
2158 extern long do_utimes(int dfd, char *filename, struct timeval *times);
2160 extern int do_setitimer(int which, struct itimerval *value,
2161 struct itimerval *ovalue);
2162 extern unsigned int alarm_setitimer(unsigned int seconds);
2163 extern int do_getitimer(int which, struct itimerval *value);
2164 extern void getnstimeofday(struct timespec *tv);
2166 extern struct timespec timespec_trunc(struct timespec t, unsigned gran);
2167 extern int timekeeping_is_continuous(void);
2168 # 129 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h"
2169 static inline __attribute__((always_inline)) s64 timespec_to_ns(const struct timespec *ts)
2171 return ((s64) ts->tv_sec * 1000000000L) + ts->tv_nsec;
2173 # 141 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h"
2174 static inline __attribute__((always_inline)) s64 timeval_to_ns(const struct timeval *tv)
2176 return ((s64) tv->tv_sec * 1000000000L) +
2177 tv->tv_usec * 1000L;
2186 extern struct timespec ns_to_timespec(const s64 nsec);
2194 extern struct timeval ns_to_timeval(const s64 nsec);
2201 static inline __attribute__((always_inline)) void timespec_add_ns(struct timespec *a, u64 ns)
2204 while(__builtin_expect(!!(ns >= 1000000000L), 0)) {
2210 # 195 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/time.h"
2212 struct timespec it_interval;
2213 struct timespec it_value;
2217 struct timeval it_interval;
2218 struct timeval it_value;
2220 # 58 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h" 2
2221 # 100 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h"
2234 struct timeval time;
2246 int :32; int :32; int :32; int :32;
2247 int :32; int :32; int :32; int :32;
2248 int :32; int :32; int :32; int :32;
2250 # 187 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h"
2251 # 1 "include2/asm/timex.h" 1
2252 # 11 "include2/asm/timex.h"
2253 typedef unsigned long long cycles_t;
2255 static __inline__ __attribute__((always_inline)) cycles_t get_cycles (void)
2259 # 188 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h" 2
2266 extern unsigned long tick_usec;
2267 extern unsigned long tick_nsec;
2273 extern int time_status;
2274 extern long time_maxerror;
2275 extern long time_esterror;
2277 extern long time_freq;
2279 extern long time_adjust;
2281 extern void ntp_clear(void);
2287 static inline __attribute__((always_inline)) int ntp_synced(void)
2289 return !(time_status & 0x0040);
2291 # 277 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/timex.h"
2292 static inline __attribute__((always_inline)) void time_interpolator_reset(void)
2296 static inline __attribute__((always_inline)) void time_interpolator_update(long delta_nsec)
2305 extern u64 current_tick_length(void);
2307 extern void second_overflow(void);
2308 extern void update_ntp_one_tick(void);
2309 extern int do_adjtimex(struct timex *);
2310 # 51 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
2311 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h" 1
2315 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/calc64.h" 1
2320 # 1 "include2/asm/div64.h" 1
2321 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/div64.h" 1
2322 # 35 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/div64.h"
2323 extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
2324 # 1 "include2/asm/div64.h" 2
2325 # 6 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/calc64.h" 2
2326 # 20 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/calc64.h"
2327 static inline __attribute__((always_inline)) unsigned long do_div_llr(const long long dividend,
2328 const long divisor, long *remainder)
2330 u64 result = dividend;
2332 *(remainder) = ({ uint32_t __base = (divisor); uint32_t __rem; (void)(((typeof((result)) *)0) == ((uint64_t *)0)); if (__builtin_expect(!!(((result) >> 32) == 0), 1)) { __rem = (uint32_t)(result) % __base; (result) = (uint32_t)(result) / __base; } else __rem = __div64_32(&(result), __base); __rem; });
2333 return (unsigned long) result;
2342 static inline __attribute__((always_inline)) long div_long_long_rem_signed(const long long dividend,
2343 const long divisor, long *remainder)
2347 if (__builtin_expect(!!(dividend < 0), 0)) {
2348 res = -do_div_llr((-dividend), divisor, remainder);
2349 *remainder = -(*remainder);
2351 res = do_div_llr((dividend), divisor, remainder);
2355 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h" 2
2356 # 81 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2357 extern u64 __attribute__((section(".data"))) jiffies_64;
2358 extern unsigned long volatile __attribute__((section(".data"))) jiffies;
2361 u64 get_jiffies_64(void);
2362 # 267 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2363 static inline __attribute__((always_inline)) unsigned int jiffies_to_msecs(const unsigned long j)
2366 return (1000L / 100) * j;
2374 static inline __attribute__((always_inline)) unsigned int jiffies_to_usecs(const unsigned long j)
2377 return (1000000L / 100) * j;
2385 static inline __attribute__((always_inline)) unsigned long msecs_to_jiffies(const unsigned int m)
2387 if (m > jiffies_to_msecs(((~0UL >> 1)-1)))
2388 return ((~0UL >> 1)-1);
2390 return (m + (1000L / 100) - 1) / (1000L / 100);
2398 static inline __attribute__((always_inline)) unsigned long usecs_to_jiffies(const unsigned int u)
2400 if (u > jiffies_to_usecs(((~0UL >> 1)-1)))
2401 return ((~0UL >> 1)-1);
2403 return (u + (1000000L / 100) - 1) / (1000000L / 100);
2410 # 326 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2411 static __inline__ __attribute__((always_inline)) unsigned long
2412 timespec_to_jiffies(const struct timespec *value)
2414 unsigned long sec = value->tv_sec;
2415 long nsec = value->tv_nsec + (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))) - 1;
2417 if (sec >= (long)((u64)((u64)((~0UL >> 1)-1) * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))) / 1000000000L)){
2418 sec = (long)((u64)((u64)((~0UL >> 1)-1) * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))) / 1000000000L);
2421 return (((u64)sec * ((unsigned long)((((u64)1000000000L << (32 - 7)) + (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))) -1) / (u64)(( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))))) +
2422 (((u64)nsec * ((unsigned long)((((u64)1 << ((32 - 7) + 29)) + (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))) -1) / (u64)(( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))))) >>
2423 (((32 - 7) + 29) - (32 - 7)))) >> (32 - 7);
2427 static __inline__ __attribute__((always_inline)) void
2428 jiffies_to_timespec(const unsigned long jiffies, struct timespec *value)
2434 u64 nsec = (u64)jiffies * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))));
2435 value->tv_sec = do_div_llr((nsec), 1000000000L, &value->tv_nsec);
2437 # 365 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2438 static __inline__ __attribute__((always_inline)) unsigned long
2439 timeval_to_jiffies(const struct timeval *value)
2441 unsigned long sec = value->tv_sec;
2442 long usec = value->tv_usec;
2444 if (sec >= (long)((u64)((u64)((~0UL >> 1)-1) * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))) / 1000000000L)){
2445 sec = (long)((u64)((u64)((~0UL >> 1)-1) * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))) / 1000000000L);
2448 return (((u64)sec * ((unsigned long)((((u64)1000000000L << (32 - 7)) + (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))) -1) / (u64)(( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))))))) +
2449 (((u64)usec * ((unsigned long)((((u64)1000L << ((32 - 7) + 19)) + (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))) -1) / (u64)(( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))))))) + (u64)(((u64)1 << ((32 - 7) + 19)) - 1)) >>
2450 (((32 - 7) + 19) - (32 - 7)))) >> (32 - 7);
2453 static __inline__ __attribute__((always_inline)) void
2454 jiffies_to_timeval(const unsigned long jiffies, struct timeval *value)
2460 u64 nsec = (u64)jiffies * (( (((1000000UL * 1000) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((((1000000UL * 1000) % ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))) << (8)) + ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100))))) / 2) / ((( ((((33000000 / 4)) / ((((33000000 / 4) + 100/2) / 100))) << (8)) + (((((33000000 / 4)) % ((((33000000 / 4) + 100/2) / 100))) << (8)) + ((((33000000 / 4) + 100/2) / 100)) / 2) / ((((33000000 / 4) + 100/2) / 100)))))));
2463 value->tv_sec = do_div_llr((nsec), 1000000000L, &tv_usec);
2465 value->tv_usec = tv_usec;
2471 static inline __attribute__((always_inline)) clock_t jiffies_to_clock_t(long x)
2474 return x / (100 / 100);
2482 static inline __attribute__((always_inline)) unsigned long clock_t_to_jiffies(unsigned long x)
2485 if (x >= ~0UL / (100 / 100))
2487 return x * (100 / 100);
2488 # 427 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2491 static inline __attribute__((always_inline)) u64 jiffies_64_to_clock_t(u64 x)
2494 ({ uint32_t __base = (100 / 100); uint32_t __rem; (void)(((typeof((x)) *)0) == ((uint64_t *)0)); if (__builtin_expect(!!(((x) >> 32) == 0), 1)) { __rem = (uint32_t)(x) % __base; (x) = (uint32_t)(x) / __base; } else __rem = __div64_32(&(x), __base); __rem; });
2495 # 442 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2499 static inline __attribute__((always_inline)) u64 nsec_to_clock_t(u64 x)
2502 ({ uint32_t __base = ((1000000000L / 100)); uint32_t __rem; (void)(((typeof((x)) *)0) == ((uint64_t *)0)); if (__builtin_expect(!!(((x) >> 32) == 0), 1)) { __rem = (uint32_t)(x) % __base; (x) = (uint32_t)(x) / __base; } else __rem = __div64_32(&(x), __base); __rem; });
2503 # 462 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/jiffies.h"
2506 # 52 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
2507 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rbtree.h" 1
2508 # 100 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rbtree.h"
2511 unsigned long rb_parent_color;
2514 struct rb_node *rb_right;
2515 struct rb_node *rb_left;
2516 } __attribute__((aligned(sizeof(long))));
2521 struct rb_node *rb_node;
2523 # 123 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rbtree.h"
2524 static inline __attribute__((always_inline)) void rb_set_parent(struct rb_node *rb, struct rb_node *p)
2526 rb->rb_parent_color = (rb->rb_parent_color & 3) | (unsigned long)p;
2528 static inline __attribute__((always_inline)) void rb_set_color(struct rb_node *rb, int color)
2530 rb->rb_parent_color = (rb->rb_parent_color & ~1) | color;
2532 # 139 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rbtree.h"
2533 extern void rb_insert_color(struct rb_node *, struct rb_root *);
2534 extern void rb_erase(struct rb_node *, struct rb_root *);
2537 extern struct rb_node *rb_next(struct rb_node *);
2538 extern struct rb_node *rb_prev(struct rb_node *);
2539 extern struct rb_node *rb_first(struct rb_root *);
2540 extern struct rb_node *rb_last(struct rb_root *);
2543 extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
2544 struct rb_root *root);
2546 static inline __attribute__((always_inline)) void rb_link_node(struct rb_node * node, struct rb_node * parent,
2547 struct rb_node ** rb_link)
2549 node->rb_parent_color = (unsigned long )parent;
2550 node->rb_left = node->rb_right = ((void *)0);
2554 # 53 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
2556 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/cpumask.h" 1
2557 # 86 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/cpumask.h"
2558 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitmap.h" 1
2566 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h" 1
2567 # 16 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h"
2568 extern char *strndup_user(const char *, long);
2573 # 1 "include2/asm/string.h" 1
2574 # 12 "include2/asm/string.h"
2575 static inline __attribute__((always_inline)) char *strcpy(char *__dest, const char *__src)
2577 register char *__xdest = __dest;
2578 unsigned long __dummy;
2580 __asm__ __volatile__("1:\n\t"
2581 "mov.b @%1+, %2\n\t"
2586 : "=r" (__dest), "=r" (__src), "=&z" (__dummy)
2587 : "0" (__dest), "1" (__src)
2594 static inline __attribute__((always_inline)) char *strncpy(char *__dest, const char *__src, size_t __n)
2596 register char *__xdest = __dest;
2597 unsigned long __dummy;
2602 __asm__ __volatile__(
2604 "mov.b @%1+, %2\n\t"
2612 : "=r" (__dest), "=r" (__src), "=&z" (__dummy)
2613 : "0" (__dest), "1" (__src), "r" (__src+__n)
2620 static inline __attribute__((always_inline)) int strcmp(const char *__cs, const char *__ct)
2623 unsigned long __dummy;
2625 __asm__ __volatile__(
2628 "mov.b @%0+, %2\n\t"
2633 " mov.b @%1+, %3\n\t"
2638 : "=r" (__cs), "=r" (__ct), "=&r" (__res), "=&z" (__dummy)
2639 : "0" (__cs), "1" (__ct)
2646 static inline __attribute__((always_inline)) int strncmp(const char *__cs, const char *__ct, size_t __n)
2649 unsigned long __dummy;
2654 __asm__ __volatile__(
2657 "mov.b @%0+, %2\n\t"
2660 " cmp/eq #0, %3\n\t"
2662 " cmp/eq %3, %2\n\t"
2664 " mov.b @%1+, %3\n\t"
2670 :"=r" (__cs), "=r" (__ct), "=&r" (__res), "=&z" (__dummy)
2671 : "0" (__cs), "1" (__ct), "r" (__cs+__n)
2678 extern void *memset(void *__s, int __c, size_t __count);
2681 extern void *memcpy(void *__to, __const__ void *__from, size_t __n);
2684 extern void *memmove(void *__dest, __const__ void *__src, size_t __n);
2687 extern void *memchr(const void *__s, int __c, size_t __n);
2690 extern size_t strlen(const char *);
2693 extern int strcasecmp(const char *, const char *);
2694 # 22 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h" 2
2695 # 30 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h"
2696 size_t strlcpy(char *, const char *, size_t);
2699 extern char * strcat(char *, const char *);
2702 extern char * strncat(char *, const char *, __kernel_size_t);
2705 extern size_t strlcat(char *, const char *, __kernel_size_t);
2706 # 48 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h"
2707 extern int strnicmp(const char *, const char *, __kernel_size_t);
2710 extern char * strchr(const char *,int);
2713 extern char * strnchr(const char *, size_t, int);
2716 extern char * strrchr(const char *,int);
2718 extern char * strstrip(char *);
2720 extern char * strstr(const char *,const char *);
2726 extern __kernel_size_t strnlen(const char *,__kernel_size_t);
2729 extern char * strpbrk(const char *,const char *);
2732 extern char * strsep(char **,const char *);
2735 extern __kernel_size_t strspn(const char *,const char *);
2738 extern __kernel_size_t strcspn(const char *,const char *);
2739 # 92 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/string.h"
2740 extern void * memscan(void *,int,__kernel_size_t);
2743 extern int memcmp(const void *,const void *,__kernel_size_t);
2749 extern char *kstrdup(const char *s, gfp_t gfp);
2750 extern void *kmemdup(const void *src, size_t len, gfp_t gfp);
2751 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitmap.h" 2
2752 # 84 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/bitmap.h"
2753 extern int __bitmap_empty(const unsigned long *bitmap, int bits);
2754 extern int __bitmap_full(const unsigned long *bitmap, int bits);
2755 extern int __bitmap_equal(const unsigned long *bitmap1,
2756 const unsigned long *bitmap2, int bits);
2757 extern void __bitmap_complement(unsigned long *dst, const unsigned long *src,
2759 extern void __bitmap_shift_right(unsigned long *dst,
2760 const unsigned long *src, int shift, int bits);
2761 extern void __bitmap_shift_left(unsigned long *dst,
2762 const unsigned long *src, int shift, int bits);
2763 extern void __bitmap_and(unsigned long *dst, const unsigned long *bitmap1,
2764 const unsigned long *bitmap2, int bits);
2765 extern void __bitmap_or(unsigned long *dst, const unsigned long *bitmap1,
2766 const unsigned long *bitmap2, int bits);
2767 extern void __bitmap_xor(unsigned long *dst, const unsigned long *bitmap1,
2768 const unsigned long *bitmap2, int bits);
2769 extern void __bitmap_andnot(unsigned long *dst, const unsigned long *bitmap1,
2770 const unsigned long *bitmap2, int bits);
2771 extern int __bitmap_intersects(const unsigned long *bitmap1,
2772 const unsigned long *bitmap2, int bits);
2773 extern int __bitmap_subset(const unsigned long *bitmap1,
2774 const unsigned long *bitmap2, int bits);
2775 extern int __bitmap_weight(const unsigned long *bitmap, int bits);
2777 extern int bitmap_scnprintf(char *buf, unsigned int len,
2778 const unsigned long *src, int nbits);
2779 extern int __bitmap_parse(const char *buf, unsigned int buflen, int is_user,
2780 unsigned long *dst, int nbits);
2781 extern int bitmap_parse_user(const char *ubuf, unsigned int ulen,
2782 unsigned long *dst, int nbits);
2783 extern int bitmap_scnlistprintf(char *buf, unsigned int len,
2784 const unsigned long *src, int nbits);
2785 extern int bitmap_parselist(const char *buf, unsigned long *maskp,
2787 extern void bitmap_remap(unsigned long *dst, const unsigned long *src,
2788 const unsigned long *old, const unsigned long *new, int bits);
2789 extern int bitmap_bitremap(int oldbit,
2790 const unsigned long *old, const unsigned long *new, int bits);
2791 extern int bitmap_find_free_region(unsigned long *bitmap, int bits, int order);
2792 extern void bitmap_release_region(unsigned long *bitmap, int pos, int order);
2793 extern int bitmap_allocate_region(unsigned long *bitmap, int pos, int order);
2801 static inline __attribute__((always_inline)) void bitmap_zero(unsigned long *dst, int nbits)
2806 int len = (((nbits)+32 -1)/32) * sizeof(unsigned long);
2807 memset(dst, 0, len);
2811 static inline __attribute__((always_inline)) void bitmap_fill(unsigned long *dst, int nbits)
2813 size_t nlongs = (((nbits)+32 -1)/32);
2815 int len = (nlongs - 1) * sizeof(unsigned long);
2816 memset(dst, 0xff, len);
2818 dst[nlongs - 1] = ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL );
2821 static inline __attribute__((always_inline)) void bitmap_copy(unsigned long *dst, const unsigned long *src,
2827 int len = (((nbits)+32 -1)/32) * sizeof(unsigned long);
2828 memcpy(dst, src, len);
2832 static inline __attribute__((always_inline)) void bitmap_and(unsigned long *dst, const unsigned long *src1,
2833 const unsigned long *src2, int nbits)
2836 *dst = *src1 & *src2;
2838 __bitmap_and(dst, src1, src2, nbits);
2841 static inline __attribute__((always_inline)) void bitmap_or(unsigned long *dst, const unsigned long *src1,
2842 const unsigned long *src2, int nbits)
2845 *dst = *src1 | *src2;
2847 __bitmap_or(dst, src1, src2, nbits);
2850 static inline __attribute__((always_inline)) void bitmap_xor(unsigned long *dst, const unsigned long *src1,
2851 const unsigned long *src2, int nbits)
2854 *dst = *src1 ^ *src2;
2856 __bitmap_xor(dst, src1, src2, nbits);
2859 static inline __attribute__((always_inline)) void bitmap_andnot(unsigned long *dst, const unsigned long *src1,
2860 const unsigned long *src2, int nbits)
2863 *dst = *src1 & ~(*src2);
2865 __bitmap_andnot(dst, src1, src2, nbits);
2868 static inline __attribute__((always_inline)) void bitmap_complement(unsigned long *dst, const unsigned long *src,
2872 *dst = ~(*src) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL );
2874 __bitmap_complement(dst, src, nbits);
2877 static inline __attribute__((always_inline)) int bitmap_equal(const unsigned long *src1,
2878 const unsigned long *src2, int nbits)
2881 return ! ((*src1 ^ *src2) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL ));
2883 return __bitmap_equal(src1, src2, nbits);
2886 static inline __attribute__((always_inline)) int bitmap_intersects(const unsigned long *src1,
2887 const unsigned long *src2, int nbits)
2890 return ((*src1 & *src2) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL )) != 0;
2892 return __bitmap_intersects(src1, src2, nbits);
2895 static inline __attribute__((always_inline)) int bitmap_subset(const unsigned long *src1,
2896 const unsigned long *src2, int nbits)
2899 return ! ((*src1 & ~(*src2)) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL ));
2901 return __bitmap_subset(src1, src2, nbits);
2904 static inline __attribute__((always_inline)) int bitmap_empty(const unsigned long *src, int nbits)
2907 return ! (*src & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL ));
2909 return __bitmap_empty(src, nbits);
2912 static inline __attribute__((always_inline)) int bitmap_full(const unsigned long *src, int nbits)
2915 return ! (~(*src) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL ));
2917 return __bitmap_full(src, nbits);
2920 static inline __attribute__((always_inline)) int bitmap_weight(const unsigned long *src, int nbits)
2923 return hweight_long(*src & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL ));
2924 return __bitmap_weight(src, nbits);
2927 static inline __attribute__((always_inline)) void bitmap_shift_right(unsigned long *dst,
2928 const unsigned long *src, int n, int nbits)
2933 __bitmap_shift_right(dst, src, n, nbits);
2936 static inline __attribute__((always_inline)) void bitmap_shift_left(unsigned long *dst,
2937 const unsigned long *src, int n, int nbits)
2940 *dst = (*src << n) & ( ((nbits) % 32) ? (1UL<<((nbits) % 32))-1 : ~0UL );
2942 __bitmap_shift_left(dst, src, n, nbits);
2945 static inline __attribute__((always_inline)) int bitmap_parse(const char *buf, unsigned int buflen,
2946 unsigned long *maskp, int nmaskbits)
2948 return __bitmap_parse(buf, buflen, 0, maskp, nmaskbits);
2950 # 87 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/cpumask.h" 2
2952 typedef struct { unsigned long bits[(((1)+32 -1)/32)]; } cpumask_t;
2953 extern cpumask_t _unused_cpumask_arg_;
2956 static inline __attribute__((always_inline)) void __cpu_set(int cpu, volatile cpumask_t *dstp)
2958 set_bit(cpu, dstp->bits);
2962 static inline __attribute__((always_inline)) void __cpu_clear(int cpu, volatile cpumask_t *dstp)
2964 clear_bit(cpu, dstp->bits);
2968 static inline __attribute__((always_inline)) void __cpus_setall(cpumask_t *dstp, int nbits)
2970 bitmap_fill(dstp->bits, nbits);
2974 static inline __attribute__((always_inline)) void __cpus_clear(cpumask_t *dstp, int nbits)
2976 bitmap_zero(dstp->bits, nbits);
2983 static inline __attribute__((always_inline)) int __cpu_test_and_set(int cpu, cpumask_t *addr)
2985 return test_and_set_bit(cpu, addr->bits);
2989 static inline __attribute__((always_inline)) void __cpus_and(cpumask_t *dstp, const cpumask_t *src1p,
2990 const cpumask_t *src2p, int nbits)
2992 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits);
2996 static inline __attribute__((always_inline)) void __cpus_or(cpumask_t *dstp, const cpumask_t *src1p,
2997 const cpumask_t *src2p, int nbits)
2999 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits);
3003 static inline __attribute__((always_inline)) void __cpus_xor(cpumask_t *dstp, const cpumask_t *src1p,
3004 const cpumask_t *src2p, int nbits)
3006 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits);
3011 static inline __attribute__((always_inline)) void __cpus_andnot(cpumask_t *dstp, const cpumask_t *src1p,
3012 const cpumask_t *src2p, int nbits)
3014 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits);
3018 static inline __attribute__((always_inline)) void __cpus_complement(cpumask_t *dstp,
3019 const cpumask_t *srcp, int nbits)
3021 bitmap_complement(dstp->bits, srcp->bits, nbits);
3025 static inline __attribute__((always_inline)) int __cpus_equal(const cpumask_t *src1p,
3026 const cpumask_t *src2p, int nbits)
3028 return bitmap_equal(src1p->bits, src2p->bits, nbits);
3032 static inline __attribute__((always_inline)) int __cpus_intersects(const cpumask_t *src1p,
3033 const cpumask_t *src2p, int nbits)
3035 return bitmap_intersects(src1p->bits, src2p->bits, nbits);
3039 static inline __attribute__((always_inline)) int __cpus_subset(const cpumask_t *src1p,
3040 const cpumask_t *src2p, int nbits)
3042 return bitmap_subset(src1p->bits, src2p->bits, nbits);
3046 static inline __attribute__((always_inline)) int __cpus_empty(const cpumask_t *srcp, int nbits)
3048 return bitmap_empty(srcp->bits, nbits);
3052 static inline __attribute__((always_inline)) int __cpus_full(const cpumask_t *srcp, int nbits)
3054 return bitmap_full(srcp->bits, nbits);
3058 static inline __attribute__((always_inline)) int __cpus_weight(const cpumask_t *srcp, int nbits)
3060 return bitmap_weight(srcp->bits, nbits);
3065 static inline __attribute__((always_inline)) void __cpus_shift_right(cpumask_t *dstp,
3066 const cpumask_t *srcp, int n, int nbits)
3068 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits);
3073 static inline __attribute__((always_inline)) void __cpus_shift_left(cpumask_t *dstp,
3074 const cpumask_t *srcp, int n, int nbits)
3076 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits);
3078 # 270 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/cpumask.h"
3079 static inline __attribute__((always_inline)) int __cpumask_scnprintf(char *buf, int len,
3080 const cpumask_t *srcp, int nbits)
3082 return bitmap_scnprintf(buf, len, srcp->bits, nbits);
3087 static inline __attribute__((always_inline)) int __cpumask_parse_user(const char *buf, int len,
3088 cpumask_t *dstp, int nbits)
3090 return bitmap_parse_user(buf, len, dstp->bits, nbits);
3095 static inline __attribute__((always_inline)) int __cpulist_scnprintf(char *buf, int len,
3096 const cpumask_t *srcp, int nbits)
3098 return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
3102 static inline __attribute__((always_inline)) int __cpulist_parse(const char *buf, cpumask_t *dstp, int nbits)
3104 return bitmap_parselist(buf, dstp->bits, nbits);
3109 static inline __attribute__((always_inline)) int __cpu_remap(int oldbit,
3110 const cpumask_t *oldp, const cpumask_t *newp, int nbits)
3112 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits);
3117 static inline __attribute__((always_inline)) void __cpus_remap(cpumask_t *dstp, const cpumask_t *srcp,
3118 const cpumask_t *oldp, const cpumask_t *newp, int nbits)
3120 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits);
3122 # 380 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/cpumask.h"
3123 extern cpumask_t cpu_possible_map;
3124 extern cpumask_t cpu_online_map;
3125 extern cpumask_t cpu_present_map;
3126 # 55 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
3127 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/errno.h" 1
3131 # 1 "include2/asm/errno.h" 1
3135 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/errno.h" 1
3139 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/errno-base.h" 1
3140 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/errno.h" 2
3141 # 5 "include2/asm/errno.h" 2
3142 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/errno.h" 2
3143 # 56 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
3144 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h" 1
3145 # 86 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h"
3146 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/numa.h" 1
3147 # 87 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h" 2
3149 typedef struct { unsigned long bits[((((1 << 0))+32 -1)/32)]; } nodemask_t;
3150 extern nodemask_t _unused_nodemask_arg_;
3153 static inline __attribute__((always_inline)) void __node_set(int node, volatile nodemask_t *dstp)
3155 set_bit(node, dstp->bits);
3159 static inline __attribute__((always_inline)) void __node_clear(int node, volatile nodemask_t *dstp)
3161 clear_bit(node, dstp->bits);
3165 static inline __attribute__((always_inline)) void __nodes_setall(nodemask_t *dstp, int nbits)
3167 bitmap_fill(dstp->bits, nbits);
3171 static inline __attribute__((always_inline)) void __nodes_clear(nodemask_t *dstp, int nbits)
3173 bitmap_zero(dstp->bits, nbits);
3181 static inline __attribute__((always_inline)) int __node_test_and_set(int node, nodemask_t *addr)
3183 return test_and_set_bit(node, addr->bits);
3188 static inline __attribute__((always_inline)) void __nodes_and(nodemask_t *dstp, const nodemask_t *src1p,
3189 const nodemask_t *src2p, int nbits)
3191 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits);
3196 static inline __attribute__((always_inline)) void __nodes_or(nodemask_t *dstp, const nodemask_t *src1p,
3197 const nodemask_t *src2p, int nbits)
3199 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits);
3204 static inline __attribute__((always_inline)) void __nodes_xor(nodemask_t *dstp, const nodemask_t *src1p,
3205 const nodemask_t *src2p, int nbits)
3207 bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits);
3212 static inline __attribute__((always_inline)) void __nodes_andnot(nodemask_t *dstp, const nodemask_t *src1p,
3213 const nodemask_t *src2p, int nbits)
3215 bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits);
3220 static inline __attribute__((always_inline)) void __nodes_complement(nodemask_t *dstp,
3221 const nodemask_t *srcp, int nbits)
3223 bitmap_complement(dstp->bits, srcp->bits, nbits);
3228 static inline __attribute__((always_inline)) int __nodes_equal(const nodemask_t *src1p,
3229 const nodemask_t *src2p, int nbits)
3231 return bitmap_equal(src1p->bits, src2p->bits, nbits);
3236 static inline __attribute__((always_inline)) int __nodes_intersects(const nodemask_t *src1p,
3237 const nodemask_t *src2p, int nbits)
3239 return bitmap_intersects(src1p->bits, src2p->bits, nbits);
3244 static inline __attribute__((always_inline)) int __nodes_subset(const nodemask_t *src1p,
3245 const nodemask_t *src2p, int nbits)
3247 return bitmap_subset(src1p->bits, src2p->bits, nbits);
3251 static inline __attribute__((always_inline)) int __nodes_empty(const nodemask_t *srcp, int nbits)
3253 return bitmap_empty(srcp->bits, nbits);
3257 static inline __attribute__((always_inline)) int __nodes_full(const nodemask_t *srcp, int nbits)
3259 return bitmap_full(srcp->bits, nbits);
3263 static inline __attribute__((always_inline)) int __nodes_weight(const nodemask_t *srcp, int nbits)
3265 return bitmap_weight(srcp->bits, nbits);
3270 static inline __attribute__((always_inline)) void __nodes_shift_right(nodemask_t *dstp,
3271 const nodemask_t *srcp, int n, int nbits)
3273 bitmap_shift_right(dstp->bits, srcp->bits, n, nbits);
3278 static inline __attribute__((always_inline)) void __nodes_shift_left(nodemask_t *dstp,
3279 const nodemask_t *srcp, int n, int nbits)
3281 bitmap_shift_left(dstp->bits, srcp->bits, n, nbits);
3288 static inline __attribute__((always_inline)) int __first_node(const nodemask_t *srcp)
3290 return ({ int __x = ((1 << 0)); int __y = (find_next_bit((srcp->bits), ((1 << 0)), 0)); __x < __y ? __x: __y; });
3294 static inline __attribute__((always_inline)) int __next_node(int n, const nodemask_t *srcp)
3296 return ({ int __x = ((1 << 0)); int __y = (find_next_bit(srcp->bits, (1 << 0), n+1)); __x < __y ? __x: __y; });
3298 # 251 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h"
3299 static inline __attribute__((always_inline)) int __first_unset_node(const nodemask_t *maskp)
3301 return ({ int __x = ((1 << 0)); int __y = (find_next_zero_bit((maskp->bits), ((1 << 0)), 0)); __x < __y ? __x: __y; });
3304 # 285 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h"
3305 static inline __attribute__((always_inline)) int __nodemask_scnprintf(char *buf, int len,
3306 const nodemask_t *srcp, int nbits)
3308 return bitmap_scnprintf(buf, len, srcp->bits, nbits);
3313 static inline __attribute__((always_inline)) int __nodemask_parse_user(const char *buf, int len,
3314 nodemask_t *dstp, int nbits)
3316 return bitmap_parse_user(buf, len, dstp->bits, nbits);
3321 static inline __attribute__((always_inline)) int __nodelist_scnprintf(char *buf, int len,
3322 const nodemask_t *srcp, int nbits)
3324 return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
3328 static inline __attribute__((always_inline)) int __nodelist_parse(const char *buf, nodemask_t *dstp, int nbits)
3330 return bitmap_parselist(buf, dstp->bits, nbits);
3335 static inline __attribute__((always_inline)) int __node_remap(int oldbit,
3336 const nodemask_t *oldp, const nodemask_t *newp, int nbits)
3338 return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits);
3343 static inline __attribute__((always_inline)) void __nodes_remap(nodemask_t *dstp, const nodemask_t *srcp,
3344 const nodemask_t *oldp, const nodemask_t *newp, int nbits)
3346 bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits);
3348 # 345 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/nodemask.h"
3349 extern nodemask_t node_online_map;
3350 extern nodemask_t node_possible_map;
3351 # 57 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
3354 # 1 "include2/asm/semaphore.h" 1
3355 # 17 "include2/asm/semaphore.h"
3356 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem.h" 1
3357 # 19 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem.h"
3358 struct rw_semaphore;
3361 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h" 1
3362 # 16 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h"
3363 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h" 1
3370 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/poison.h" 1
3371 # 8 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h" 2
3372 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/prefetch.h" 1
3373 # 58 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/prefetch.h"
3374 static inline __attribute__((always_inline)) void prefetch_range(void *addr, size_t len)
3378 char *end = addr + len;
3380 for (cp = addr; cp < end; cp += (1 << 5))
3384 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h" 2
3385 # 21 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3387 struct list_head *next, *prev;
3395 static inline __attribute__((always_inline)) void INIT_LIST_HEAD(struct list_head *list)
3400 # 43 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3401 static inline __attribute__((always_inline)) void __list_add(struct list_head *new,
3402 struct list_head *prev,
3403 struct list_head *next)
3410 # 67 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3411 static inline __attribute__((always_inline)) void list_add(struct list_head *new, struct list_head *head)
3413 __list_add(new, head, head->next);
3415 # 84 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3416 static inline __attribute__((always_inline)) void list_add_tail(struct list_head *new, struct list_head *head)
3418 __list_add(new, head->prev, head);
3427 static inline __attribute__((always_inline)) void __list_add_rcu(struct list_head * new,
3428 struct list_head * prev, struct list_head * next)
3432 __asm__ __volatile__("": : :"memory");
3436 # 121 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3437 static inline __attribute__((always_inline)) void list_add_rcu(struct list_head *new, struct list_head *head)
3439 __list_add_rcu(new, head, head->next);
3441 # 142 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3442 static inline __attribute__((always_inline)) void list_add_tail_rcu(struct list_head *new,
3443 struct list_head *head)
3445 __list_add_rcu(new, head->prev, head);
3447 # 155 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3448 static inline __attribute__((always_inline)) void __list_del(struct list_head * prev, struct list_head * next)
3453 # 168 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3454 static inline __attribute__((always_inline)) void list_del(struct list_head *entry)
3456 __list_del(entry->prev, entry->next);
3457 entry->next = ((void *) 0x00100100);
3458 entry->prev = ((void *) 0x00200200);
3460 # 202 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3461 static inline __attribute__((always_inline)) void list_del_rcu(struct list_head *entry)
3463 __list_del(entry->prev, entry->next);
3464 entry->prev = ((void *) 0x00200200);
3473 static inline __attribute__((always_inline)) void list_replace(struct list_head *old,
3474 struct list_head *new)
3476 new->next = old->next;
3477 new->next->prev = new;
3478 new->prev = old->prev;
3479 new->prev->next = new;
3482 static inline __attribute__((always_inline)) void list_replace_init(struct list_head *old,
3483 struct list_head *new)
3485 list_replace(old, new);
3486 INIT_LIST_HEAD(old);
3488 # 238 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3489 static inline __attribute__((always_inline)) void list_replace_rcu(struct list_head *old,
3490 struct list_head *new)
3492 new->next = old->next;
3493 new->prev = old->prev;
3494 __asm__ __volatile__("": : :"memory");
3495 new->next->prev = new;
3496 new->prev->next = new;
3497 old->prev = ((void *) 0x00200200);
3504 static inline __attribute__((always_inline)) void list_del_init(struct list_head *entry)
3506 __list_del(entry->prev, entry->next);
3507 INIT_LIST_HEAD(entry);
3515 static inline __attribute__((always_inline)) void list_move(struct list_head *list, struct list_head *head)
3517 __list_del(list->prev, list->next);
3518 list_add(list, head);
3526 static inline __attribute__((always_inline)) void list_move_tail(struct list_head *list,
3527 struct list_head *head)
3529 __list_del(list->prev, list->next);
3530 list_add_tail(list, head);
3538 static inline __attribute__((always_inline)) int list_is_last(const struct list_head *list,
3539 const struct list_head *head)
3541 return list->next == head;
3548 static inline __attribute__((always_inline)) int list_empty(const struct list_head *head)
3550 return head->next == head;
3552 # 315 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3553 static inline __attribute__((always_inline)) int list_empty_careful(const struct list_head *head)
3555 struct list_head *next = head->next;
3556 return (next == head) && (next == head->prev);
3559 static inline __attribute__((always_inline)) void __list_splice(struct list_head *list,
3560 struct list_head *head)
3562 struct list_head *first = list->next;
3563 struct list_head *last = list->prev;
3564 struct list_head *at = head->next;
3578 static inline __attribute__((always_inline)) void list_splice(struct list_head *list, struct list_head *head)
3580 if (!list_empty(list))
3581 __list_splice(list, head);
3583 # 353 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3584 static inline __attribute__((always_inline)) void list_splice_init(struct list_head *list,
3585 struct list_head *head)
3587 if (!list_empty(list)) {
3588 __list_splice(list, head);
3589 INIT_LIST_HEAD(list);
3592 # 607 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3594 struct hlist_node *first;
3598 struct hlist_node *next, **pprev;
3604 static inline __attribute__((always_inline)) void INIT_HLIST_NODE(struct hlist_node *h)
3606 h->next = ((void *)0);
3607 h->pprev = ((void *)0);
3610 static inline __attribute__((always_inline)) int hlist_unhashed(const struct hlist_node *h)
3615 static inline __attribute__((always_inline)) int hlist_empty(const struct hlist_head *h)
3620 static inline __attribute__((always_inline)) void __hlist_del(struct hlist_node *n)
3622 struct hlist_node *next = n->next;
3623 struct hlist_node **pprev = n->pprev;
3626 next->pprev = pprev;
3629 static inline __attribute__((always_inline)) void hlist_del(struct hlist_node *n)
3632 n->next = ((void *) 0x00100100);
3633 n->pprev = ((void *) 0x00200200);
3635 # 669 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3636 static inline __attribute__((always_inline)) void hlist_del_rcu(struct hlist_node *n)
3639 n->pprev = ((void *) 0x00200200);
3642 static inline __attribute__((always_inline)) void hlist_del_init(struct hlist_node *n)
3644 if (!hlist_unhashed(n)) {
3649 # 690 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3650 static inline __attribute__((always_inline)) void hlist_replace_rcu(struct hlist_node *old,
3651 struct hlist_node *new)
3653 struct hlist_node *next = old->next;
3656 new->pprev = old->pprev;
3657 __asm__ __volatile__("": : :"memory");
3659 new->next->pprev = &new->next;
3661 old->pprev = ((void *) 0x00200200);
3664 static inline __attribute__((always_inline)) void hlist_add_head(struct hlist_node *n, struct hlist_head *h)
3666 struct hlist_node *first = h->first;
3669 first->pprev = &n->next;
3671 n->pprev = &h->first;
3673 # 734 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3674 static inline __attribute__((always_inline)) void hlist_add_head_rcu(struct hlist_node *n,
3675 struct hlist_head *h)
3677 struct hlist_node *first = h->first;
3679 n->pprev = &h->first;
3680 __asm__ __volatile__("": : :"memory");
3682 first->pprev = &n->next;
3687 static inline __attribute__((always_inline)) void hlist_add_before(struct hlist_node *n,
3688 struct hlist_node *next)
3690 n->pprev = next->pprev;
3692 next->pprev = &n->next;
3696 static inline __attribute__((always_inline)) void hlist_add_after(struct hlist_node *n,
3697 struct hlist_node *next)
3699 next->next = n->next;
3701 next->pprev = &n->next;
3704 next->next->pprev = &next->next;
3706 # 785 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3707 static inline __attribute__((always_inline)) void hlist_add_before_rcu(struct hlist_node *n,
3708 struct hlist_node *next)
3710 n->pprev = next->pprev;
3712 __asm__ __volatile__("": : :"memory");
3713 next->pprev = &n->next;
3716 # 813 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/list.h"
3717 static inline __attribute__((always_inline)) void hlist_add_after_rcu(struct hlist_node *prev,
3718 struct hlist_node *n)
3720 n->next = prev->next;
3721 n->pprev = &prev->next;
3722 __asm__ __volatile__("": : :"memory");
3725 n->next->pprev = &n->next;
3727 # 17 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h" 2
3733 struct rwsem_waiter;
3734 # 31 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h"
3735 struct rw_semaphore {
3737 spinlock_t wait_lock;
3738 struct list_head wait_list;
3743 # 52 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h"
3744 extern void __init_rwsem(struct rw_semaphore *sem, const char *name,
3745 struct lock_class_key *key);
3746 # 62 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem-spinlock.h"
3747 extern void __down_read(struct rw_semaphore *sem);
3748 extern int __down_read_trylock(struct rw_semaphore *sem);
3749 extern void __down_write(struct rw_semaphore *sem);
3750 extern void __down_write_nested(struct rw_semaphore *sem, int subclass);
3751 extern int __down_write_trylock(struct rw_semaphore *sem);
3752 extern void __up_read(struct rw_semaphore *sem);
3753 extern void __up_write(struct rw_semaphore *sem);
3754 extern void __downgrade_write(struct rw_semaphore *sem);
3756 static inline __attribute__((always_inline)) int rwsem_is_locked(struct rw_semaphore *sem)
3758 return (sem->activity != 0);
3760 # 23 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/rwsem.h" 2
3768 extern void down_read(struct rw_semaphore *sem);
3773 extern int down_read_trylock(struct rw_semaphore *sem);
3778 extern void down_write(struct rw_semaphore *sem);
3783 extern int down_write_trylock(struct rw_semaphore *sem);
3788 extern void up_read(struct rw_semaphore *sem);
3793 extern void up_write(struct rw_semaphore *sem);
3798 extern void downgrade_write(struct rw_semaphore *sem);
3799 # 18 "include2/asm/semaphore.h" 2
3800 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h" 1
3801 # 28 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3802 typedef struct __wait_queue wait_queue_t;
3803 typedef int (*wait_queue_func_t)(wait_queue_t *wait, unsigned mode, int sync, void *key);
3804 int default_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
3806 struct __wait_queue {
3810 wait_queue_func_t func;
3811 struct list_head task_list;
3814 struct wait_bit_key {
3819 struct wait_bit_queue {
3820 struct wait_bit_key key;
3824 struct __wait_queue_head {
3826 struct list_head task_list;
3828 typedef struct __wait_queue_head wait_queue_head_t;
3831 # 80 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3832 extern void init_waitqueue_head(wait_queue_head_t *q);
3834 static inline __attribute__((always_inline)) void init_waitqueue_entry(wait_queue_t *q, struct task_struct *p)
3838 q->func = default_wake_function;
3841 static inline __attribute__((always_inline)) void init_waitqueue_func_entry(wait_queue_t *q,
3842 wait_queue_func_t func)
3845 q->private = ((void *)0);
3849 static inline __attribute__((always_inline)) int waitqueue_active(wait_queue_head_t *q)
3851 return !list_empty(&q->task_list);
3853 # 111 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3854 extern void add_wait_queue(wait_queue_head_t *q, wait_queue_t * wait);
3855 extern void add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait);
3856 extern void remove_wait_queue(wait_queue_head_t *q, wait_queue_t * wait);
3858 static inline __attribute__((always_inline)) void __add_wait_queue(wait_queue_head_t *head, wait_queue_t *new)
3860 list_add(&new->task_list, &head->task_list);
3866 static inline __attribute__((always_inline)) void __add_wait_queue_tail(wait_queue_head_t *head,
3869 list_add_tail(&new->task_list, &head->task_list);
3872 static inline __attribute__((always_inline)) void __remove_wait_queue(wait_queue_head_t *head,
3875 list_del(&old->task_list);
3878 void __wake_up(wait_queue_head_t *q, unsigned int mode, int nr, void *key);
3879 extern void __wake_up_locked(wait_queue_head_t *q, unsigned int mode);
3880 extern void __wake_up_sync(wait_queue_head_t *q, unsigned int mode, int nr);
3881 void __wake_up_bit(wait_queue_head_t *, void *, int);
3882 int __wait_on_bit(wait_queue_head_t *, struct wait_bit_queue *, int (*)(void *), unsigned);
3883 int __wait_on_bit_lock(wait_queue_head_t *, struct wait_bit_queue *, int (*)(void *), unsigned);
3884 void wake_up_bit(void *, int);
3885 int out_of_line_wait_on_bit(void *, int, int (*)(void *), unsigned);
3886 int out_of_line_wait_on_bit_lock(void *, int, int (*)(void *), unsigned);
3887 wait_queue_head_t *bit_waitqueue(void *, int);
3888 # 342 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3889 static inline __attribute__((always_inline)) void add_wait_queue_exclusive_locked(wait_queue_head_t *q,
3890 wait_queue_t * wait)
3892 wait->flags |= 0x01;
3893 __add_wait_queue_tail(q, wait);
3899 static inline __attribute__((always_inline)) void remove_wait_queue_locked(wait_queue_head_t *q,
3900 wait_queue_t * wait)
3902 __remove_wait_queue(q, wait);
3910 extern void sleep_on(wait_queue_head_t *q);
3911 extern long sleep_on_timeout(wait_queue_head_t *q, signed long timeout);
3913 extern void interruptible_sleep_on(wait_queue_head_t *q);
3914 extern long interruptible_sleep_on_timeout(wait_queue_head_t *q, signed long timeout);
3920 void prepare_to_wait(wait_queue_head_t *q, wait_queue_t *wait, int state);
3922 void prepare_to_wait_exclusive(wait_queue_head_t *q, wait_queue_t *wait, int state);
3924 void finish_wait(wait_queue_head_t *q, wait_queue_t *wait);
3925 int autoremove_wake_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
3926 int wake_bit_function(wait_queue_t *wait, unsigned mode, int sync, void *key);
3927 # 420 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3928 static inline __attribute__((always_inline)) int wait_on_bit(void *word, int bit,
3929 int (*action)(void *), unsigned mode)
3931 if (!test_bit(bit, word))
3933 return out_of_line_wait_on_bit(word, bit, action, mode);
3935 # 444 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/wait.h"
3936 static inline __attribute__((always_inline)) int wait_on_bit_lock(void *word, int bit,
3937 int (*action)(void *), unsigned mode)
3939 if (!test_and_set_bit(bit, word))
3941 return out_of_line_wait_on_bit_lock(word, bit, action, mode);
3943 # 19 "include2/asm/semaphore.h" 2
3951 wait_queue_head_t wait;
3953 # 42 "include2/asm/semaphore.h"
3954 static inline __attribute__((always_inline)) void sema_init (struct semaphore *sem, int val)
3962 ((&sem->count)->counter = (val));
3964 init_waitqueue_head(&sem->wait);
3967 static inline __attribute__((always_inline)) void init_MUTEX (struct semaphore *sem)
3972 static inline __attribute__((always_inline)) void init_MUTEX_LOCKED (struct semaphore *sem)
3976 # 72 "include2/asm/semaphore.h"
3977 void __down(struct semaphore * sem);
3978 int __down_interruptible(struct semaphore * sem);
3979 int __down_trylock(struct semaphore * sem);
3980 void __up(struct semaphore * sem);
3982 extern spinlock_t semaphore_wake_lock;
3984 static inline __attribute__((always_inline)) void down(struct semaphore * sem)
3986 do { do { } while (0); } while (0);
3987 if (atomic_sub_return(1,(&sem->count)) < 0)
3991 static inline __attribute__((always_inline)) int down_interruptible(struct semaphore * sem)
3995 do { do { } while (0); } while (0);
3996 if (atomic_sub_return(1,(&sem->count)) < 0)
3997 ret = __down_interruptible(sem);
4001 static inline __attribute__((always_inline)) int down_trylock(struct semaphore * sem)
4005 if (atomic_sub_return(1,(&sem->count)) < 0)
4006 ret = __down_trylock(sem);
4014 static inline __attribute__((always_inline)) void up(struct semaphore * sem)
4016 if (atomic_add_return(1,(&sem->count)) <= 0)
4019 # 60 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
4022 # 1 "include2/asm/mmu.h" 1
4023 # 14 "include2/asm/mmu.h"
4024 typedef unsigned long mm_context_id_t;
4030 # 47 "include2/asm/mmu.h"
4036 unsigned long flags;
4044 struct pmb_entry *next;
4046 struct pmb_entry *link;
4050 int __set_pmb_entry(unsigned long vpn, unsigned long ppn,
4051 unsigned long flags, int *entry);
4052 int set_pmb_entry(struct pmb_entry *pmbe);
4053 void clear_pmb_entry(struct pmb_entry *pmbe);
4054 struct pmb_entry *pmb_alloc(unsigned long vpn, unsigned long ppn,
4055 unsigned long flags);
4056 void pmb_free(struct pmb_entry *pmbe);
4057 long pmb_remap(unsigned long virt, unsigned long phys,
4058 unsigned long size, unsigned long flags);
4059 void pmb_unmap(unsigned long addr);
4060 # 63 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
4061 # 1 "include2/asm/cputime.h" 1
4065 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/cputime.h" 1
4072 typedef unsigned long cputime_t;
4073 # 23 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/cputime.h"
4074 typedef u64 cputime64_t;
4075 # 5 "include2/asm/cputime.h" 2
4076 # 64 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
4078 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/smp.h" 1
4079 # 10 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/smp.h"
4080 extern void cpu_idle(void);
4081 # 87 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/smp.h"
4082 static inline __attribute__((always_inline)) int up_smp_call_function(void)
4086 # 99 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/smp.h"
4087 static inline __attribute__((always_inline)) void smp_send_reschedule(int cpu) { }
4088 # 131 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/smp.h"
4089 void smp_setup_processor_id(void);
4090 # 66 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
4091 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sem.h" 1
4095 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h" 1
4096 # 9 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h"
4102 __kernel_uid_t cuid;
4103 __kernel_gid_t cgid;
4104 __kernel_mode_t mode;
4109 # 1 "include2/asm/ipcbuf.h" 1
4110 # 14 "include2/asm/ipcbuf.h"
4114 __kernel_uid32_t uid;
4115 __kernel_gid32_t gid;
4116 __kernel_uid32_t cuid;
4117 __kernel_gid32_t cgid;
4118 __kernel_mode_t mode;
4119 unsigned short __pad1;
4121 unsigned short __pad2;
4122 unsigned long __unused1;
4123 unsigned long __unused2;
4125 # 22 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h" 2
4126 # 54 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h"
4127 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kref.h" 1
4128 # 23 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/kref.h"
4133 void kref_init(struct kref *kref);
4134 void kref_get(struct kref *kref);
4135 int kref_put(struct kref *kref, void (*release) (struct kref *kref));
4136 # 55 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h" 2
4141 struct kern_ipc_perm
4156 struct ipc_namespace {
4158 struct ipc_ids *ids[3];
4173 extern struct ipc_namespace init_ipc_ns;
4174 # 104 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/ipc.h"
4175 static inline __attribute__((always_inline)) int copy_ipcs(unsigned long flags, struct task_struct *tsk)
4181 static inline __attribute__((always_inline)) struct ipc_namespace *get_ipc_ns(struct ipc_namespace *ns)
4190 static inline __attribute__((always_inline)) void put_ipc_ns(struct ipc_namespace *ns)
4196 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sem.h" 2
4197 # 23 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sem.h"
4199 struct ipc_perm sem_perm;
4200 __kernel_time_t sem_otime;
4201 __kernel_time_t sem_ctime;
4202 struct sem *sem_base;
4203 struct sem_queue *sem_pending;
4204 struct sem_queue **sem_pending_last;
4205 struct sem_undo *undo;
4206 unsigned short sem_nsems;
4210 # 1 "include2/asm/sembuf.h" 1
4211 # 14 "include2/asm/sembuf.h"
4213 struct ipc64_perm sem_perm;
4214 __kernel_time_t sem_otime;
4215 unsigned long __unused1;
4216 __kernel_time_t sem_ctime;
4217 unsigned long __unused2;
4218 unsigned long sem_nsems;
4219 unsigned long __unused3;
4220 unsigned long __unused4;
4222 # 36 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sem.h" 2
4226 unsigned short sem_num;
4234 struct semid_ds *buf;
4235 unsigned short *array;
4236 struct seminfo *__buf;
4252 # 82 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sem.h"
4263 struct kern_ipc_perm sem_perm;
4267 struct sem *sem_base;
4268 struct sem_queue *sem_pending;
4269 struct sem_queue **sem_pending_last;
4270 struct sem_undo *undo;
4271 unsigned long sem_nsems;
4276 struct sem_queue * next;
4277 struct sem_queue ** prev;
4278 struct task_struct* sleeper;
4279 struct sem_undo * undo;
4282 struct sem_array * sma;
4284 struct sembuf * sops;
4293 struct sem_undo * proc_next;
4294 struct sem_undo * id_next;
4302 struct sem_undo_list {
4305 struct sem_undo *proc_list;
4309 struct sem_undo_list *undo_list;
4314 extern int copy_semundo(unsigned long clone_flags, struct task_struct *tsk);
4315 extern void exit_sem(struct task_struct *tsk);
4316 # 67 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/sched.h" 2
4317 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/signal.h" 1
4321 # 1 "include2/asm/signal.h" 1
4330 # 18 "include2/asm/signal.h"
4331 typedef unsigned long old_sigset_t;
4334 unsigned long sig[(64 / 32)];
4336 # 109 "include2/asm/signal.h"
4337 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/signal.h" 1
4338 # 17 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/signal.h"
4339 typedef void __signalfn_t(int);
4340 typedef __signalfn_t *__sighandler_t;
4342 typedef void __restorefn_t(void);
4343 typedef __restorefn_t *__sigrestore_t;
4344 # 110 "include2/asm/signal.h" 2
4347 struct old_sigaction {
4348 __sighandler_t sa_handler;
4349 old_sigset_t sa_mask;
4350 unsigned long sa_flags;
4351 void (*sa_restorer)(void);
4355 __sighandler_t sa_handler;
4356 unsigned long sa_flags;
4357 void (*sa_restorer)(void);
4361 struct k_sigaction {
4362 struct sigaction sa;
4364 # 147 "include2/asm/signal.h"
4365 typedef struct sigaltstack {
4372 # 1 "include2/asm/sigcontext.h" 1
4377 unsigned long oldmask;
4380 unsigned long sc_regs[16];
4381 unsigned long sc_pc;
4382 unsigned long sc_pr;
4383 unsigned long sc_sr;
4384 unsigned long sc_gbr;
4385 unsigned long sc_mach;
4386 unsigned long sc_macl;
4390 unsigned long sc_fpregs[16];
4391 unsigned long sc_xfpregs[16];
4392 unsigned int sc_fpscr;
4393 unsigned int sc_fpul;
4394 unsigned int sc_ownedfp;
4397 # 155 "include2/asm/signal.h" 2
4398 # 5 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/signal.h" 2
4399 # 1 "include2/asm/siginfo.h" 1
4403 # 1 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/siginfo.h" 1
4410 typedef union sigval {
4414 # 40 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/siginfo.h"
4415 typedef struct siginfo {
4421 int _pad[((128 - (3 * sizeof(int))) / sizeof(int))];
4433 char _pad[sizeof( uid_t) - sizeof(int)];
4469 # 251 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/asm-generic/siginfo.h"
4470 typedef struct sigevent {
4471 sigval_t sigev_value;
4475 int _pad[((64 - (sizeof(int) * 2 + sizeof(sigval_t))) / sizeof(int))];
4479 void (*_function)(sigval_t);
4492 void do_schedule_next_timer(struct siginfo *info);
4498 static inline __attribute__((always_inline)) void copy_siginfo(struct siginfo *to, struct siginfo *from)
4500 if (from->si_code < 0)
4501 memcpy(to, from, sizeof(*to));
4504 memcpy(to, from, (3 * sizeof(int)) + sizeof(from->_sifields._sigchld));
4509 extern int copy_siginfo_to_user(struct siginfo *to, struct siginfo *from);
4510 # 5 "include2/asm/siginfo.h" 2
4511 # 6 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/signal.h" 2
4512 # 15 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/signal.h"
4514 struct list_head list;
4517 struct user_struct *user;
4524 struct list_head list;
4527 # 39 "/mnt/data/_home/mano/linuxsh/kernel/linux-2.6.19-rc2-work/include/linux/signal.h"
4528 static inline __attribute__((always_inline)) void sigaddset(sigset_t *set, int _sig)
4530 unsigned long sig = _sig - 1;
4532 set->sig[0] |= 1UL << sig;
4534 set->sig[sig / 32] |= 1UL << (sig % 32);
4537 static inline __attribute__((always_inline)) void sigdelset(sigset_t *set, int _sig)
4539 unsigned long sig = _sig - 1;
4541 set->sig[0] &= ~(1UL << sig);
4543 set->sig[sig / 32] &= ~(1UL << (sig % 32));
4546 static inline __attribute__((always_inline)) int sigismember(sigset_t *set, int _sig)
4548 unsigned long sig = _sig - 1;
4550 return 1 & (set->sig[0] >> sig);
4552 return 1 & (set->sig[sig / 32] >> (sig % 32));
4555 static inline __attribute__((always_inline)) int sigfindinword(unsigned long word)