Message ID | 20220905141829.28605-1-wonder_rock@126.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/1] arm64: preempt: Add NEED_RESCHED to the preempt_count() | expand |
On Mon, Sep 05, 2022 at 11:50:13PM +0800, wonder_rock@126.com wrote:
> I know it is wrong. I just want to say I think preempt_count() need include NEED_RESCHED
Won't that break everybody expecting a count? I'm not sure what you're
asking from us here.
Will
diff --git a/arch/arm64/include/asm/preempt.h b/arch/arm64/include/asm/preempt.h index 0159b625cc7f..083b0fd3c52a 100644 --- a/arch/arm64/include/asm/preempt.h +++ b/arch/arm64/include/asm/preempt.h @@ -10,7 +10,7 @@ static inline int preempt_count(void) { - return READ_ONCE(current_thread_info()->preempt.count); + return READ_ONCE(current_thread_info()->preempt_count); } static inline void preempt_count_set(u64 pc)