Skip to content

Commit 08035a6

Browse files
guoren83mpe
authored andcommitted
powerpc/sched: Remove unused TASK_SIZE_OF
This macro isn't used in Linux sched, now. Delete in include/linux/sched.h and arch's include/asm. Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Guo Ren <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 18dbfcd commit 08035a6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

arch/powerpc/include/asm/task_size_64.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@
4444
*/
4545
#define TASK_SIZE_USER32 (0x0000000100000000UL - (1 * PAGE_SIZE))
4646

47-
#define TASK_SIZE_OF(tsk) \
48-
(test_tsk_thread_flag(tsk, TIF_32BIT) ? TASK_SIZE_USER32 : \
49-
TASK_SIZE_USER64)
50-
51-
#define TASK_SIZE TASK_SIZE_OF(current)
47+
#define TASK_SIZE (is_32bit_task() ? TASK_SIZE_USER32 : TASK_SIZE_USER64)
5248

5349
#define TASK_UNMAPPED_BASE_USER32 (PAGE_ALIGN(TASK_SIZE_USER32 / 4))
5450
#define TASK_UNMAPPED_BASE_USER64 (PAGE_ALIGN(DEFAULT_MAP_WINDOW_USER64 / 4))

0 commit comments

Comments
 (0)