1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SCHED_SYSCTL_H
3 #define _LINUX_SCHED_SYSCTL_H
4 
5 #include <linux/types.h>
6 
7 #ifdef CONFIG_DETECT_HUNG_TASK
8 /* used for hung_task and block/ */
9 extern unsigned long sysctl_hung_task_timeout_secs;
10 #else
11 /* Avoid need for ifdefs elsewhere in the code */
12 enum { sysctl_hung_task_timeout_secs = 0 };
13 #endif
14 
15 enum sched_tunable_scaling {
16 	SCHED_TUNABLESCALING_NONE,
17 	SCHED_TUNABLESCALING_LOG,
18 	SCHED_TUNABLESCALING_LINEAR,
19 	SCHED_TUNABLESCALING_END,
20 };
21 
22 #define NUMA_BALANCING_DISABLED		0x0
23 #define NUMA_BALANCING_NORMAL		0x1
24 #define NUMA_BALANCING_MEMORY_TIERING	0x2
25 
26 #ifdef CONFIG_NUMA_BALANCING
27 extern int sysctl_numa_balancing_mode;
28 #else
29 #define sysctl_numa_balancing_mode	0
30 #endif
31 
32 #endif /* _LINUX_SCHED_SYSCTL_H */
33