11/*
2- * Copyright 2004-2009 Analog Devices Inc.
2+ * Copyright 2004-2010 Analog Devices Inc.
33 *
44 * Licensed under the GPL-2 or later.
55 */
1717/* Thread Align Mask to reach to the top of the stack
1818 * for any process
1919 */
20- #define ALIGN_PAGE_MASK 0xffffe000
20+ #define ALIGN_PAGE_MASK 0xffffe000
2121
2222/*
2323 * Size of kernel stack for each process. This must be a power of 2...
@@ -57,7 +57,7 @@ struct thread_info {
5757 .exec_domain = &default_exec_domain, \
5858 .flags = 0, \
5959 .cpu = 0, \
60- .preempt_count = INIT_PREEMPT_COUNT, \
60+ .preempt_count = INIT_PREEMPT_COUNT, \
6161 .restart_block = { \
6262 .fn = do_no_restart_syscall, \
6363 }, \
@@ -73,8 +73,7 @@ __attribute_const__
7373static inline struct thread_info * current_thread_info (void )
7474{
7575 struct thread_info * ti ;
76- __asm__("%0 = sp;" : "=da" (ti ) :
77- );
76+ __asm__("%0 = sp;" : "=da" (ti ));
7877 return (struct thread_info * )((long )ti & ~((long )THREAD_SIZE - 1 ));
7978}
8079
@@ -99,21 +98,21 @@ static inline struct thread_info *current_thread_info(void)
9998#define TIF_NEED_RESCHED 2 /* rescheduling necessary */
10099#define TIF_POLLING_NRFLAG 3 /* true if poll_idle() is polling
101100 TIF_NEED_RESCHED */
102- #define TIF_MEMDIE 4
101+ #define TIF_MEMDIE 4
103102#define TIF_RESTORE_SIGMASK 5 /* restore signal mask in do_signal() */
104- #define TIF_FREEZE 6 /* is freezing for suspend */
105- #define TIF_IRQ_SYNC 7 /* sync pipeline stage */
106- #define TIF_NOTIFY_RESUME 8 /* callback before returning to user */
103+ #define TIF_FREEZE 6 /* is freezing for suspend */
104+ #define TIF_IRQ_SYNC 7 /* sync pipeline stage */
105+ #define TIF_NOTIFY_RESUME 8 /* callback before returning to user */
107106
108107/* as above, but as bit values */
109108#define _TIF_SYSCALL_TRACE (1<<TIF_SYSCALL_TRACE)
110109#define _TIF_SIGPENDING (1<<TIF_SIGPENDING)
111110#define _TIF_NEED_RESCHED (1<<TIF_NEED_RESCHED)
112- #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
113111#define _TIF_POLLING_NRFLAG (1<<TIF_POLLING_NRFLAG)
114112#define _TIF_RESTORE_SIGMASK (1<<TIF_RESTORE_SIGMASK)
115- #define _TIF_FREEZE (1<<TIF_FREEZE)
116- #define _TIF_IRQ_SYNC (1<<TIF_IRQ_SYNC)
113+ #define _TIF_FREEZE (1<<TIF_FREEZE)
114+ #define _TIF_IRQ_SYNC (1<<TIF_IRQ_SYNC)
115+ #define _TIF_NOTIFY_RESUME (1<<TIF_NOTIFY_RESUME)
117116
118117#define _TIF_WORK_MASK 0x0000FFFE /* work to do on interrupt/exception return */
119118
0 commit comments