From: David S. Miller Date: Thu, 27 Mar 2008 00:32:33 +0000 (-0700) Subject: [SPARC64]: Define TASK_SIZE_OF() X-Git-Tag: v2.6.25-rc8~78^2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c101b088ba0ed16d7109b2f3c2d16798d162a535;p=linux-2.6 [SPARC64]: Define TASK_SIZE_OF() This make "cat /proc/${PID}/pagemap" more efficient for 32-bit tasks. Based upon a report by Mariusz Kozlowski. Signed-off-by: David S. Miller --- diff --git a/include/asm-sparc64/processor.h b/include/asm-sparc64/processor.h index 8da484c198..885b6a1dca 100644 --- a/include/asm-sparc64/processor.h +++ b/include/asm-sparc64/processor.h @@ -37,6 +37,9 @@ #endif #define TASK_SIZE ((unsigned long)-VPTE_SIZE) +#define TASK_SIZE_OF(tsk) \ + (test_tsk_thread_flag(tsk,TIF_32BIT) ? \ + (1UL << 32UL) : TASK_SIZE) #ifdef __KERNEL__ #define STACK_TOP32 ((1UL << 32UL) - PAGE_SIZE)