]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: processor.h - use PAGE_SIZE instead of numeric value
authorCyrill Gorcunov <gorcunov@gmail.com>
Thu, 13 Mar 2008 16:44:56 +0000 (19:44 +0300)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:41:19 +0000 (17:41 +0200)
This patch replaces numeric constant with an appropriate macro

Also 0x800000000000UL is changed to bit shifting which is complement
to the code comment (thanks hpa for notice)

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/asm-x86/processor.h

index 40227c9bf51b6a9da932d3efff8fddf40618c7ff..b0dece41dbc4628111f13db792bb271f1a3a9a98 100644 (file)
@@ -870,7 +870,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
 /*
  * User space process size. 47bits minus one guard page.
  */
-#define TASK_SIZE64            (0x800000000000UL - 4096)
+#define TASK_SIZE64    ((1UL << 47) - PAGE_SIZE)
 
 /* This decides where the kernel will search for a free chunk of vm
  * space during mmap's.