projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6a843d
)
[SPARC64]: Define TASK_SIZE_OF()
author
David S. Miller
<davem@davemloft.net>
Thu, 27 Mar 2008 00:32:33 +0000
(17:32 -0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 27 Mar 2008 00:32:33 +0000
(17:32 -0700)
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 <davem@davemloft.net>
include/asm-sparc64/processor.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-sparc64/processor.h
b/include/asm-sparc64/processor.h
index 8da484c19822cc1d08d59d4fc635e06329ef2675..885b6a1dcae4d0b75df49cdc82df8e2035aa45a0 100644
(file)
--- 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)