Skip to content

Commit

Permalink
m32r: Use common threadinfo allocator
Browse files Browse the repository at this point in the history
No reason why m32r needs to use kmalloc to allocate 2 pages instead of
using the core allocator.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Link: http://lkml.kernel.org/r/20120505150141.875430830@linutronix.de
  • Loading branch information
Thomas Gleixner committed May 8, 2012
1 parent c64872c commit e6e9c54
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions arch/m32r/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ struct thread_info {

#define PREEMPT_ACTIVE 0x10000000

#define THREAD_SIZE (PAGE_SIZE << 1)

#define THREAD_SIZE (PAGE_SIZE << 1)
#define THREAD_SIZE_ORDER 1
/*
* macros/functions for gaining access to the thread information structure
*/
Expand Down Expand Up @@ -92,19 +92,6 @@ static inline struct thread_info *current_thread_info(void)
return ti;
}

#define __HAVE_ARCH_THREAD_INFO_ALLOCATOR

/* thread information allocation */
#ifdef CONFIG_DEBUG_STACK_USAGE
#define alloc_thread_info_node(tsk, node) \
kzalloc_node(THREAD_SIZE, GFP_KERNEL, node)
#else
#define alloc_thread_info_node(tsk, node) \
kmalloc_node(THREAD_SIZE, GFP_KERNEL, node)
#endif

#define free_thread_info(info) kfree(info)

#define TI_FLAG_FAULT_CODE_SHIFT 28

static inline void set_thread_fault_code(unsigned int val)
Expand Down

0 comments on commit e6e9c54

Please sign in to comment.