Commit 6c2185ff authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] PA-RISC preempt accounting fixes

 - Match other architectures by initialising preempt_count to 1.
 - PREEMPT_ACTIVE needs to not overlap with HARDIRQ_MASK
Signed-off-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 08aa9723
......@@ -23,7 +23,7 @@ struct thread_info {
.flags = 0, \
.cpu = 0, \
.addr_limit = KERNEL_DS, \
.preempt_count = 0, \
.preempt_count = 1, \
.restart_block = { \
.fn = do_no_restart_syscall \
} \
......@@ -52,7 +52,7 @@ struct thread_info {
#endif /* !__ASSEMBLY */
#define PREEMPT_ACTIVE 0x4000000
#define PREEMPT_ACTIVE 0x10000000
/*
* thread information flags
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment