Skip to content

Commit c984baa

Browse files
committed
parisc: Use _TIF_USER_WORK_MASK in entry.S
The constant _TIF_USER_WORK_MASK will get extended by additional flags in the future, so check against the bits set in this mask - with the exception of _TIF_NEED_RESCHED which was tested a few lines above. Signed-off-by: Helge Deller <[email protected]>
1 parent 93346da commit c984baa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/parisc/kernel/entry.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ intr_check_sig:
887887
/* As above */
888888
mfctl %cr30,%r1
889889
LDREG TI_FLAGS(%r1),%r19
890-
ldi (_TIF_SIGPENDING|_TIF_NOTIFY_RESUME), %r20
890+
ldi (_TIF_USER_WORK_MASK & ~_TIF_NEED_RESCHED), %r20
891891
and,COND(<>) %r19, %r20, %r0
892892
b,n intr_restore /* skip past if we've nothing to do */
893893

@@ -1810,7 +1810,7 @@ syscall_check_resched:
18101810
.import do_signal,code
18111811
syscall_check_sig:
18121812
LDREG TI_FLAGS-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r19
1813-
ldi (_TIF_SIGPENDING|_TIF_NOTIFY_RESUME), %r26
1813+
ldi (_TIF_USER_WORK_MASK & ~_TIF_NEED_RESCHED), %r26
18141814
and,COND(<>) %r19, %r26, %r0
18151815
b,n syscall_restore /* skip past if we've nothing to do */
18161816

0 commit comments

Comments
 (0)