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

« back to all changes in this revision

Viewing changes to arch/mn10300/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:
124
124
 
125
125
/* thread information allocation */
126
126
#ifdef CONFIG_DEBUG_STACK_USAGE
127
 
#define alloc_thread_info(tsk) kzalloc(THREAD_SIZE, GFP_KERNEL)
 
127
#define alloc_thread_info_node(tsk, node)                       \
 
128
                kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
128
129
#else
129
 
#define alloc_thread_info(tsk) kmalloc(THREAD_SIZE, GFP_KERNEL)
 
130
#define alloc_thread_info_node(tsk, node)                       \
 
131
                kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
130
132
#endif
131
133
 
 
134
#ifndef CONFIG_KGDB
132
135
#define free_thread_info(ti)    kfree((ti))
 
136
#else
 
137
extern void free_thread_info(struct thread_info *);
 
138
#endif
133
139
#define get_thread_info(ti)     get_task_struct((ti)->task)
134
140
#define put_thread_info(ti)     put_task_struct((ti)->task)
135
141