1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _LINUX_SCHED_SYSCTL_H
3 #define _LINUX_SCHED_SYSCTL_H
5 #include <linux/types.h>
9 #ifdef CONFIG_DETECT_HUNG_TASK
10 /* used for hung_task and block/ */
11 extern unsigned long sysctl_hung_task_timeout_secs;
13 /* Avoid need for ifdefs elsewhere in the code */
14 enum { sysctl_hung_task_timeout_secs = 0 };
17 enum sched_tunable_scaling {
18 SCHED_TUNABLESCALING_NONE,
19 SCHED_TUNABLESCALING_LOG,
20 SCHED_TUNABLESCALING_LINEAR,
21 SCHED_TUNABLESCALING_END,
24 #define NUMA_BALANCING_DISABLED 0x0
25 #define NUMA_BALANCING_NORMAL 0x1
26 #define NUMA_BALANCING_MEMORY_TIERING 0x2
28 #ifdef CONFIG_NUMA_BALANCING
29 extern int sysctl_numa_balancing_mode;
30 extern unsigned int sysctl_numa_balancing_promote_rate_limit;
32 #define sysctl_numa_balancing_mode 0
35 int sysctl_numa_balancing(struct ctl_table *table, int write, void *buffer,
36 size_t *lenp, loff_t *ppos);
38 #endif /* _LINUX_SCHED_SYSCTL_H */