X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Flinux%2Fentry-common.h;h=71064a2c2cafe36ebcf43cc8955f23c285d434fa;hb=a1bd55431114f35158e3c5a46db754fd74c55889;hp=2e2b8d6140ed47a743c88d03464b9a4d0fc9bcde;hpb=43f44f5bd1970fafb259152e1c9d8e6daf0f362d;p=platform%2Fkernel%2Flinux-rpi.git diff --git a/include/linux/entry-common.h b/include/linux/entry-common.h index 2e2b8d6..71064a2 100644 --- a/include/linux/entry-common.h +++ b/include/linux/entry-common.h @@ -57,9 +57,15 @@ # 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 | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \ + _TIF_NEED_RESCHED_MASK | _TIF_PATCH_PENDING | _TIF_NOTIFY_SIGNAL | \ ARCH_EXIT_TO_USER_MODE_WORK) /**