diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 2c2f3072beef..b089c92c609b 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1527,6 +1527,14 @@ struct task_struct { | |||
1527 | short il_next; | 1527 | short il_next; |
1528 | short pref_node_fork; | 1528 | short pref_node_fork; |
1529 | #endif | 1529 | #endif |
1530 | #ifdef CONFIG_NUMA_BALANCING | ||
1531 | int numa_scan_seq; | ||
1532 | int numa_migrate_seq; | ||
1533 | unsigned int numa_scan_period; | ||
1534 | u64 node_stamp; /* migration stamp */ | ||
1535 | struct callback_head numa_work; | ||
1536 | #endif /* CONFIG_NUMA_BALANCING */ | ||
1537 | |||
1530 | struct rcu_head rcu; | 1538 | struct rcu_head rcu; |
1531 | 1539 | ||
1532 | /* | 1540 | /* |
@@ -1601,6 +1609,18 @@ struct task_struct { | |||
1601 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1609 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
1602 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) | 1610 | #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed) |
1603 | 1611 | ||
1612 | #ifdef CONFIG_NUMA_BALANCING | ||
1613 | extern void task_numa_fault(int node, int pages, bool migrated); | ||
1614 | extern void set_numabalancing_state(bool enabled); | ||
1615 | #else | ||
1616 | static inline void task_numa_fault(int node, int pages, bool migrated) | ||
1617 | { | ||
1618 | } | ||
1619 | static inline void set_numabalancing_state(bool enabled) | ||
1620 | { | ||
1621 | } | ||
1622 | #endif | ||
1623 | |||
1604 | /* | 1624 | /* |
1605 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT | 1625 | * Priority of a process goes from 0..MAX_PRIO-1, valid RT |
1606 | * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH | 1626 | * priority is 0..MAX_RT_PRIO-1, and SCHED_NORMAL/SCHED_BATCH |
@@ -2030,6 +2050,13 @@ enum sched_tunable_scaling { | |||
2030 | }; | 2050 | }; |
2031 | extern enum sched_tunable_scaling sysctl_sched_tunable_scaling; | 2051 | extern enum sched_tunable_scaling sysctl_sched_tunable_scaling; |
2032 | 2052 | ||
2053 | extern unsigned int sysctl_numa_balancing_scan_delay; | ||
2054 | extern unsigned int sysctl_numa_balancing_scan_period_min; | ||
2055 | extern unsigned int sysctl_numa_balancing_scan_period_max; | ||
2056 | extern unsigned int sysctl_numa_balancing_scan_period_reset; | ||
2057 | extern unsigned int sysctl_numa_balancing_scan_size; | ||
2058 | extern unsigned int sysctl_numa_balancing_settle_count; | ||
2059 | |||
2033 | #ifdef CONFIG_SCHED_DEBUG | 2060 | #ifdef CONFIG_SCHED_DEBUG |
2034 | extern unsigned int sysctl_sched_migration_cost; | 2061 | extern unsigned int sysctl_sched_migration_cost; |
2035 | extern unsigned int sysctl_sched_nr_migrate; | 2062 | extern unsigned int sysctl_sched_nr_migrate; |