diff options
author | Will Deacon <will.deacon@arm.com> | 2018-09-19 13:39:26 +0100 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2018-12-07 12:35:46 +0000 |
commit | 08861d33d680838753f1f9d3ba9480d3651b764d (patch) | |
tree | d4adfa8fdb8410eabebe2e9ba273134653a178a4 /arch/s390 | |
parent | a21b0b78eaf770c6c3814dd59d213cd6aa47eecd (diff) | |
download | linux-08861d33d680838753f1f9d3ba9480d3651b764d.tar.bz2 |
preempt: Move PREEMPT_NEED_RESCHED definition into arch code
PREEMPT_NEED_RESCHED is never used directly, so move it into the arch
code where it can potentially be implemented using either a different
bit in the preempt count or as an entirely separate entity.
Cc: Robert Love <rml@tech9.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/preempt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/preempt.h b/arch/s390/include/asm/preempt.h index 23a14d187fb1..b5ea9e14c017 100644 --- a/arch/s390/include/asm/preempt.h +++ b/arch/s390/include/asm/preempt.h @@ -8,6 +8,8 @@ #ifdef CONFIG_HAVE_MARCH_Z196_FEATURES +/* We use the MSB mostly because its available */ +#define PREEMPT_NEED_RESCHED 0x80000000 #define PREEMPT_ENABLED (0 + PREEMPT_NEED_RESCHED) static inline int preempt_count(void) |