History

sched: Move SCHED_RESET_ON_FORK into attr::sched_flags

I noticed the new sched_{set,get}attr() calls didn't properly deal with the SCHED_RESET_ON_FORK hack. Instead of propagating the flags in high bits nonsense use the brand spanking new attr::sched_flags field.

Peter Zijlstra committed 12 years ago

Commit 7479f3c1 parent 0bb040a2 files · +33 −14Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/sched.h+5−0
@@ -40,8 +40,13 @@ · 39 unmodified lines
40/* SCHED_ISO: reserved but not implemented yet */40/* SCHED_ISO: reserved but not implemented yet */
41#define SCHED_IDLE 541#define SCHED_IDLE 5
42#define SCHED_DEADLINE 642#define SCHED_DEADLINE 6
43
43/* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */44/* Can be ORed in to make sure the process is reverted back to SCHED_NORMAL on fork */
44#define SCHED_RESET_ON_FORK 0x4000000045#define SCHED_RESET_ON_FORK 0x40000000
45 46
47/*
48 * For the sched_{set,get}attr() calls
49 */
50#define SCHED_FLAG_RESET_ON_FORK 0x01
46 51
47#endif /* _UAPI_LINUX_SCHED_H */52#endif /* _UAPI_LINUX_SCHED_H */