]> Git Repo - J-linux.git/blob - include/linux/sched/sysctl.h
Merge branch 'topic/ctl-enhancements' into for-next
[J-linux.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 #else
31 #define sysctl_numa_balancing_mode      0
32 #endif
33
34 int sysctl_numa_balancing(struct ctl_table *table, int write, void *buffer,
35                 size_t *lenp, loff_t *ppos);
36
37 #endif /* _LINUX_SCHED_SYSCTL_H */
This page took 0.030675 seconds and 4 git commands to generate.