From 244b2c5ca8b14627e4a17755e5922221e121c771 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 09 Oct 2024 06:15:07 +0000
Subject: [PATCH] change system file
---
kernel/kernel/cpu.c | 18 ++++++------------
1 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/kernel/kernel/cpu.c b/kernel/kernel/cpu.c
index b561341..09d8ee3 100644
--- a/kernel/kernel/cpu.c
+++ b/kernel/kernel/cpu.c
@@ -45,6 +45,7 @@
#include <trace/hooks/sched.h>
#include <trace/hooks/cpu.h>
+#include "sched/sched.h"
#include "smpboot.h"
/**
@@ -1159,8 +1160,6 @@
}
EXPORT_SYMBOL_GPL(remove_cpu);
-extern int dl_cpu_busy(int cpu, struct task_struct *p);
-
int __pause_drain_rq(struct cpumask *cpus)
{
unsigned int cpu;
@@ -1234,7 +1233,7 @@
cpumask_and(cpus, cpus, cpu_active_mask);
for_each_cpu(cpu, cpus) {
- if (!cpu_online(cpu) || dl_cpu_busy(cpu, NULL) ||
+ if (!cpu_online(cpu) || dl_bw_check_overflow(cpu) ||
get_cpu_device(cpu)->offline_disabled == true) {
err = -EBUSY;
goto err_cpu_maps_update;
@@ -1980,7 +1979,7 @@
.name = "ap:online",
},
/*
- * Handled on control processor until the plugged processor manages
+ * Handled on controll processor until the plugged processor manages
* this itself.
*/
[CPUHP_TEARDOWN_CPU] = {
@@ -1989,13 +1988,6 @@
.teardown.single = takedown_cpu,
.cant_stop = true,
},
-
- [CPUHP_AP_SCHED_WAIT_EMPTY] = {
- .name = "sched:waitempty",
- .startup.single = NULL,
- .teardown.single = sched_cpu_wait_empty,
- },
-
/* Handle smpboot threads park/unpark */
[CPUHP_AP_SMPBOOT_THREADS] = {
.name = "smpboot/threads:online",
@@ -2545,8 +2537,10 @@
if (st->state < target)
ret = cpu_up(dev->id, target);
- else
+ else if (st->state > target)
ret = cpu_down(dev->id, target);
+ else if (WARN_ON(st->target != target))
+ st->target = target;
out:
unlock_device_hotplug();
return ret ? ret : count;
--
Gitblit v1.6.2