~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to arch/sh/include/asm/thread_info.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 
96
96
#endif
97
97
 
98
 
extern struct thread_info *alloc_thread_info(struct task_struct *tsk);
 
98
extern struct thread_info *alloc_thread_info_node(struct task_struct *tsk, int node);
99
99
extern void free_thread_info(struct thread_info *ti);
100
100
extern void arch_task_cache_init(void);
101
101
#define arch_task_cache_init arch_task_cache_init
120
120
#define TIF_SECCOMP             6       /* secure computing */
121
121
#define TIF_NOTIFY_RESUME       7       /* callback before returning to user */
122
122
#define TIF_SYSCALL_TRACEPOINT  8       /* for ftrace syscall instrumentation */
123
 
#define TIF_KERNEL_TRACE        9       /* kernel trace active */
124
123
#define TIF_POLLING_NRFLAG      17      /* true if poll_idle() is polling TIF_NEED_RESCHED */
125
124
#define TIF_MEMDIE              18      /* is terminating due to OOM killer */
126
125
#define TIF_FREEZE              19      /* Freezing for suspend */
133
132
#define _TIF_SECCOMP            (1 << TIF_SECCOMP)
134
133
#define _TIF_NOTIFY_RESUME      (1 << TIF_NOTIFY_RESUME)
135
134
#define _TIF_SYSCALL_TRACEPOINT (1 << TIF_SYSCALL_TRACEPOINT)
136
 
#define _TIF_KERNEL_TRACE       (1 << TIF_KERNEL_TRACE)
137
135
#define _TIF_POLLING_NRFLAG     (1 << TIF_POLLING_NRFLAG)
138
136
#define _TIF_FREEZE             (1 << TIF_FREEZE)
139
137
 
146
144
/* work to do in syscall trace */
147
145
#define _TIF_WORK_SYSCALL_MASK  (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
148
146
                                 _TIF_SYSCALL_AUDIT | _TIF_SECCOMP    | \
149
 
                                 _TIF_SYSCALL_TRACEPOINT | _TIF_KERNEL_TRACE)
 
147
                                 _TIF_SYSCALL_TRACEPOINT)
150
148
 
151
149
/* work to do on any return to u-space */
152
150
#define _TIF_ALLWORK_MASK       (_TIF_SYSCALL_TRACE | _TIF_SIGPENDING      | \
153
151
                                 _TIF_NEED_RESCHED  | _TIF_SYSCALL_AUDIT   | \
154
152
                                 _TIF_SINGLESTEP    | _TIF_NOTIFY_RESUME   | \
155
 
                                 _TIF_SYSCALL_TRACEPOINT | _TIF_KERNEL_TRACE)
 
153
                                 _TIF_SYSCALL_TRACEPOINT)
156
154
 
157
155
/* work to do on interrupt/exception return */
158
156
#define _TIF_WORK_MASK          (_TIF_ALLWORK_MASK & ~(_TIF_SYSCALL_TRACE | \
159
 
                                 _TIF_SYSCALL_AUDIT | _TIF_SINGLESTEP | \
160
 
                                 _TIF_KERNEL_TRACE))
 
157
                                 _TIF_SYSCALL_AUDIT | _TIF_SINGLESTEP))
161
158
 
162
159
/*
163
160
 * Thread-synchronous status.