[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-c812d8f7ad27bd5f1ed1c790eea8527b6f8ff1c7@git.kernel.org>
Date: Tue, 23 Aug 2011 21:01:20 GMT
From: tip-bot for Zhao Jin <cronozhj@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
cronozhj@...il.com, tglx@...utronix.de, hpa@...ux.intel.com,
mingo@...e.hu
Subject: [tip:x86/cleanups] x86, mm, trivial: Remove unnecessary get_order() in free_thread_info()
Commit-ID: c812d8f7ad27bd5f1ed1c790eea8527b6f8ff1c7
Gitweb: http://git.kernel.org/tip/c812d8f7ad27bd5f1ed1c790eea8527b6f8ff1c7
Author: Zhao Jin <cronozhj@...il.com>
AuthorDate: Sat, 20 Aug 2011 21:24:57 +0800
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 23 Aug 2011 21:49:35 +0200
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: Zhao Jin <cronozhj@...il.com>
Link: http://lkml.kernel.org/r/4E4FB5A9.700@gmail.com
Signed-off-by: H. Peter Anvin <hpa@...ux.intel.com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
arch/x86/kernel/process.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index e7e3b01..b9b3b1a 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -49,7 +49,7 @@ void free_thread_xstate(struct task_struct *tsk)
void free_thread_info(struct thread_info *ti)
{
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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists