Skip to content

Commit

Permalink
entry: Fix the preempt lazy fallout
Browse files Browse the repository at this point in the history
Common code needs common defines....

Fixes: f2f9e49 ("x86: Support for lazy preemption")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
KAGA-KOKO committed Jul 13, 2021
1 parent cdfc6ae commit 87ca007
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 0 additions & 2 deletions arch/x86/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ struct thread_info {

#define _TIF_WORK_CTXSW_NEXT (_TIF_WORK_CTXSW)

#define _TIF_NEED_RESCHED_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)

#define STACK_WARN (THREAD_SIZE/8)

/*
Expand Down
6 changes: 6 additions & 0 deletions include/linux/entry-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
# define ARCH_EXIT_TO_USER_MODE_WORK (0)
#endif

#ifdef CONFIG_PREEMPT_LAZY
# define _TIF_NEED_RESCHED_MASK (_TIF_NEED_RESCHED | _TIF_NEED_RESCHED_LAZY)
#else
# define _TIF_NEED_RESCHED_MASK (_TIF_NEED_RESCHED)
#endif

#define EXIT_TO_USER_MODE_WORK \
(_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | _TIF_UPROBE | \
_TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \
Expand Down

0 comments on commit 87ca007

Please sign in to comment.