sched: add macros to define bitops for task atomic flags

This will simplify code when we add new flags.

- Kees pointed out that no_new_privs should never be cleared, so we
shouldn't define task_clear_no_new_privs(). we define 3 macros instead
of a single one.

- updated scripts/, suggested by Peter

Cc: Ingo Molnar <>
Cc: Miao Xie <>
Cc: Tetsuo Handa <>
Acked-by: Peter Zijlstra (Intel) <>
Acked-by: Kees Cook <>
Signed-off-by: Zefan Li <>
Signed-off-by: Tejun Heo <>
2 files changed