]> asedeno.scripts.mit.edu Git - linux.git/commit
arm64: consistently use unsigned long for thread flags
authorMark Rutland <mark.rutland@arm.com>
Wed, 11 Jul 2018 13:56:36 +0000 (14:56 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 12 Jul 2018 13:40:38 +0000 (14:40 +0100)
commit3eb6f1f9e6364d5eca1ddf3c9e963c5916069190
treef1d514c5f95fe2e5b3412a486408657cd2d2342c
parente87a4a92fba3721eb06ba8d061b550e09e3d063a
arm64: consistently use unsigned long for thread flags

In do_notify_resume, we manipulate thread_flags as a 32-bit unsigned
int, whereas thread_info::flags is a 64-bit unsigned long, and elsewhere
(e.g. in the entry assembly) we manipulate the flags as a 64-bit
quantity.

For consistency, and to avoid problems if we end up with more than 32
flags, let's make do_notify_resume take the flags as a 64-bit unsigned
long.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Dave Martin <dave.martin@arm.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/signal.c