Skip to contentSkip to conversation

sched/core: Fix preprocessor #endif statement annotations

PATCH RESEND New Darshit Shah 1 participant 1 message Jun 14 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 sched/core: Fix preprocessor #endif statement annotations

A previous patch replaced the conditional CONFIG_CFS_BANDWIDTH with CONFIG_GROUP_SCHED_BANDWIDTH. However, the corresponding #endif statements were not appropriately changed. This commit fixes that.

Fixes ddceadce63d9 ("sched_ext: Add support for cgroup bandwidth control interface")
---
 kernel/sched/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/core.c +2 -2
index 2f4530eb543f..624995352cce 100644
@@ -10491,7 +10491,7 @@ static ssize_t cpu_max_write(struct kernfs_open_file *of,
 		ret = tg_set_bandwidth(tg, period_us, quota_us, burst_us);
 	return ret ?: nbytes;
 }
-#endif /* CONFIG_CFS_BANDWIDTH */
+#endif /* CONFIG_GROUP_SCHED_BANDWIDTH */
 
 static struct cftype cpu_files[] = {
 #ifdef CONFIG_GROUP_SCHED_WEIGHT
@@ -10527,7 +10527,7 @@ static struct cftype cpu_files[] = {
 		.read_u64 = cpu_burst_read_u64,
 		.write_u64 = cpu_burst_write_u64,
 	},
-#endif /* CONFIG_CFS_BANDWIDTH */
+#endif /* CONFIG_GROUP_SCHED_BANDWIDTH */
 #ifdef CONFIG_UCLAMP_TASK_GROUP
 	{
 		.name = "uclamp.min",
Signature · 12 lines
2.54.0




Amazon Web Services Development Center Germany GmbH
Tamara-Danz-Str. 13
10243 Berlin
Geschaeftsfuehrung: Christof Hellmis, Andreas Stieger
Eingetragen am Amtsgericht Charlottenburg unter HRB 257764 B
Sitz: Berlin
Ust-ID: DE 365 538 597