Skip to content

Commit

Permalink
[SPARC64]: Define TASK_SIZE_OF()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Mar 27, 2008
1 parent f6a843d commit c101b08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/asm-sparc64/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c101b08

Please sign in to comment.