core.c (8feb053d53194382fcfb68231296fdc220497ea6) | core.c (e34e0131fea1b0f63c2105a1958c94af2ee90f4d) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * kernel/sched/core.c 4 * 5 * Core kernel CPU scheduler code 6 * 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat --- 9878 unchanged lines hidden (view full) --- 9887 .flags = CFTYPE_NOT_ON_ROOT, 9888 .seq_show = cpu_uclamp_max_show, 9889 .write = cpu_uclamp_max_write, 9890 }, 9891#endif 9892 { } /* Terminate */ 9893}; 9894 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * kernel/sched/core.c 4 * 5 * Core kernel CPU scheduler code 6 * 7 * Copyright (C) 1991-2002 Linus Torvalds 8 * Copyright (C) 1998-2024 Ingo Molnar, Red Hat --- 9878 unchanged lines hidden (view full) --- 9887 .flags = CFTYPE_NOT_ON_ROOT, 9888 .seq_show = cpu_uclamp_max_show, 9889 .write = cpu_uclamp_max_write, 9890 }, 9891#endif 9892 { } /* Terminate */ 9893}; 9894 |
9895#ifdef CONFIG_RT_GROUP_SCHED 9896# ifdef CONFIG_RT_GROUP_SCHED_DEFAULT_DISABLED 9897DEFINE_STATIC_KEY_FALSE(rt_group_sched); 9898# else 9899DEFINE_STATIC_KEY_TRUE(rt_group_sched); 9900# endif 9901 9902static int __init setup_rt_group_sched(char *str) 9903{ 9904 long val; 9905 9906 if (kstrtol(str, 0, &val) || val < 0 || val > 1) { 9907 pr_warn("Unable to set rt_group_sched\n"); 9908 return 1; 9909 } 9910 if (val) 9911 static_branch_enable(&rt_group_sched); 9912 else 9913 static_branch_disable(&rt_group_sched); 9914 9915 return 1; 9916} 9917__setup("rt_group_sched=", setup_rt_group_sched); 9918#endif /* CONFIG_RT_GROUP_SCHED */ 9919 |
|
9895static int cpu_extra_stat_show(struct seq_file *sf, 9896 struct cgroup_subsys_state *css) 9897{ 9898#ifdef CONFIG_CFS_BANDWIDTH 9899 { 9900 struct task_group *tg = css_tg(css); 9901 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; 9902 u64 throttled_usec, burst_usec; --- 849 unchanged lines hidden --- | 9920static int cpu_extra_stat_show(struct seq_file *sf, 9921 struct cgroup_subsys_state *css) 9922{ 9923#ifdef CONFIG_CFS_BANDWIDTH 9924 { 9925 struct task_group *tg = css_tg(css); 9926 struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth; 9927 u64 throttled_usec, burst_usec; --- 849 unchanged lines hidden --- |