提交 c812d8f7 编写于 作者: Z Zhao Jin 提交者: Ingo Molnar

x86, mm, trivial: Remove unnecessary get_order() in free_thread_info()

Because THREAD_SIZE is defined as PAGE_SIZE << THREAD_ORDER on x86, the
call of get_order(THREAD_SIZE) can be replaced with THREAD_ORDER.
Signed-off-by: NZhao Jin <cronozhj@gmail.com>
Link: http://lkml.kernel.org/r/4E4FB5A9.700@gmail.comSigned-off-by: NH. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 7a4e8bea
...@@ -49,7 +49,7 @@ void free_thread_xstate(struct task_struct *tsk) ...@@ -49,7 +49,7 @@ void free_thread_xstate(struct task_struct *tsk)
void free_thread_info(struct thread_info *ti) void free_thread_info(struct thread_info *ti)
{ {
free_thread_xstate(ti->task); free_thread_xstate(ti->task);
free_pages((unsigned long)ti, get_order(THREAD_SIZE)); free_pages((unsigned long)ti, THREAD_ORDER);
} }
void arch_task_cache_init(void) void arch_task_cache_init(void)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册