Skip to content

Commit 2631781

Browse files
linuswRussell King
authored andcommitted
ARM: 8982/1: mm: Simplify act_mm macro
The act_mm assembly macro is actually partly reimplementing get_thread_info so let's just use that. Suggested-by: Russell King <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 846484e commit 2631781

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/arm/mm/proc-macros.S

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* VMA_VM_FLAGS
66
* VM_EXEC
77
*/
8-
#include <linux/const.h>
98
#include <asm/asm-offsets.h>
109
#include <asm/thread_info.h>
1110

@@ -31,8 +30,7 @@
3130
* act_mm - get current->active_mm
3231
*/
3332
.macro act_mm, rd
34-
bic \rd, sp, #(THREAD_SIZE - 1) & ~63
35-
bic \rd, \rd, #63
33+
get_thread_info \rd
3634
ldr \rd, [\rd, #TI_TASK]
3735
.if (TSK_ACTIVE_MM > IMM12_MASK)
3836
add \rd, \rd, #TSK_ACTIVE_MM & ~IMM12_MASK

0 commit comments

Comments
 (0)