]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: renumber bits related to _TIF_WORK_MASK
authorJens Axboe <axboe@kernel.dk>
Wed, 4 Jan 2023 14:48:37 +0000 (07:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:27 +0000 (12:00 +0100)
commitd5d25dd73316daa79ad38a4e17c6b1376a602b70
tree1aacdbdd830e63a88d6806954423f05725b22940
parentcdf62a88c1398debeb1a36b4701537a9cdf0206b
ARM: renumber bits related to _TIF_WORK_MASK

commit 191f8453fc99a537ea78b727acea739782378b0d upstream.

We want to ensure that the mask related to calling do_work_pending()
is within the first 16 bits. Move bits unrelated to that outside of
that range, to avoid spuriously calling do_work_pending() when we don't
need to.

Cc: stable@vger.kernel.org
Fixes: 32d59773da38 ("arm: add support for TIF_NOTIFY_SIGNAL")
Reported-and-tested-by: Hui Tang <tanghui20@huawei.com>
Suggested-by: Russell King (Oracle) <linux@armlinux.org.uk>
Link: https://lore.kernel.org/lkml/7ecb8f3c-2aeb-a905-0d4a-aa768b9649b5@huawei.com/
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/include/asm/thread_info.h