303ee7dd0c7e2a67d9901755d994003f1ae7fc8b
[linux-2.6-block.git] / include / linux / sched / sysctl.h
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 struct ctl_table;
8
9 #ifdef CONFIG_DETECT_HUNG_TASK
10 /* used for hung_task and block/ */
11 extern unsigned long sysctl_hung_task_timeout_secs;
12 #else
13 /* Avoid need for ifdefs elsewhere in the code */
14 enum { sysctl_hung_task_timeout_secs = 0 };
15 #endif
16
17 enum sched_tunable_scaling {
18         SCHED_TUNABLESCALING_NONE,
19         SCHED_TUNABLESCALING_LOG,
20         SCHED_TUNABLESCALING_LINEAR,
21         SCHED_TUNABLESCALING_END,
22 };
23
24 #define NUMA_BALANCING_DISABLED         0x0
25 #define NUMA_BALANCING_NORMAL           0x1
26 #define NUMA_BALANCING_MEMORY_TIERING   0x2
27
28 #ifdef CONFIG_NUMA_BALANCING
29 extern int sysctl_numa_balancing_mode;
30 extern unsigned int sysctl_numa_balancing_promote_rate_limit;
31 #else
32 #define sysctl_numa_balancing_mode      0
33 #endif
34
35 int sysctl_numa_balancing(struct ctl_table *table, int write, void *buffer,
36                 size_t *lenp, loff_t *ppos);
37
38 #endif /* _LINUX_SCHED_SYSCTL_H */