]> Gentwo Git Trees - linux/.git/commitdiff
arm64: define TIF_POLLING_NRFLAG
authorJoao Martins <joao.m.martins@oracle.com>
Wed, 25 Sep 2024 23:24:21 +0000 (16:24 -0700)
committerChristoph Lameter <cl@gentwo.org>
Wed, 9 Oct 2024 02:06:43 +0000 (19:06 -0700)
Commit 842514849a61 ("arm64: Remove TIF_POLLING_NRFLAG") had removed
TIF_POLLING_NRFLAG because arm64 only supported non-polled idling via
cpu_do_idle().

To add support for polling via cpuidle-haltpoll, we want to use the
standard poll_idle() interface, which sets TIF_POLLING_NRFLAG while
polling.

Reuse the same bit to define TIF_POLLING_NRFLAG.

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Signed-off-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Tested-by: Misono Tomohiro <misono.tomohiro@fujitsu.com>
arch/arm64/include/asm/thread_info.h

index 1114c1c3300a13105863664b083e1714048f7c86..5326cd583b017dbd1069b978d0c952cd288e3cda 100644 (file)
@@ -69,6 +69,7 @@ void arch_setup_new_exec(void);
 #define TIF_SYSCALL_TRACEPOINT 10      /* syscall tracepoint for ftrace */
 #define TIF_SECCOMP            11      /* syscall secure computing */
 #define TIF_SYSCALL_EMU                12      /* syscall emulation active */
+#define TIF_POLLING_NRFLAG     16      /* set while polling in poll_idle() */
 #define TIF_MEMDIE             18      /* is terminating due to OOM killer */
 #define TIF_FREEZE             19
 #define TIF_RESTORE_SIGMASK    20
@@ -92,6 +93,7 @@ void arch_setup_new_exec(void);
 #define _TIF_SYSCALL_TRACEPOINT        (1 << TIF_SYSCALL_TRACEPOINT)
 #define _TIF_SECCOMP           (1 << TIF_SECCOMP)
 #define _TIF_SYSCALL_EMU       (1 << TIF_SYSCALL_EMU)
+#define _TIF_POLLING_NRFLAG    (1 << TIF_POLLING_NRFLAG)
 #define _TIF_UPROBE            (1 << TIF_UPROBE)
 #define _TIF_SINGLESTEP                (1 << TIF_SINGLESTEP)
 #define _TIF_32BIT             (1 << TIF_32BIT)