-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Piotr Gorski <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
From a32cace2808c1fbb18b01e356136a8716eb6c80d Mon Sep 17 00:00:00 2001 | ||
From b3798e48e04608361fe4e7b386318638dced5a2e Mon Sep 17 00:00:00 2001 | ||
From: Piotr Gorski <[email protected]> | ||
Date: Thu, 26 Oct 2023 20:14:38 +0200 | ||
Date: Fri, 27 Oct 2023 09:40:54 +0200 | ||
Subject: [PATCH] bore-eevdf | ||
|
||
Signed-off-by: Piotr Gorski <[email protected]> | ||
--- | ||
include/linux/sched.h | 31 +++++++ | ||
init/Kconfig | 19 ++++ | ||
kernel/sched/autogroup.c | 4 + | ||
kernel/sched/core.c | 163 +++++++++++++++++++++++++++++++++ | ||
kernel/sched/core.c | 163 ++++++++++++++++++++++++++++++++ | ||
kernel/sched/debug.c | 3 + | ||
kernel/sched/fair.c | 192 +++++++++++++++++++++++++++++++++++++-- | ||
kernel/sched/fair.c | 194 +++++++++++++++++++++++++++++++++++++-- | ||
kernel/sched/features.h | 18 ++++ | ||
7 files changed, 423 insertions(+), 7 deletions(-) | ||
7 files changed, 424 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/include/linux/sched.h b/include/linux/sched.h | ||
index 93c03b162..9316707d0 100644 | ||
|
@@ -326,7 +326,7 @@ index 37ffe69a9..7257bfdab 100644 | |
SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id(p)); | ||
#endif | ||
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c | ||
index 8c1d8bbe7..7b3f6b5b9 100644 | ||
index 8c1d8bbe7..1c9f58c70 100644 | ||
--- a/kernel/sched/fair.c | ||
+++ b/kernel/sched/fair.c | ||
@@ -19,6 +19,9 @@ | ||
|
@@ -535,6 +535,22 @@ index 8c1d8bbe7..7b3f6b5b9 100644 | |
} | ||
|
||
/* | ||
@@ -970,7 +1114,6 @@ static struct sched_entity *pick_eevdf(struct cfs_rq *cfs_rq) | ||
return se; | ||
} | ||
|
||
-#ifdef CONFIG_SCHED_DEBUG | ||
struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq) | ||
{ | ||
struct rb_node *last = rb_last(&cfs_rq->tasks_timeline.rb_root); | ||
@@ -985,6 +1128,7 @@ struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq) | ||
* Scheduling class statistics methods: | ||
*/ | ||
|
||
+#ifdef CONFIG_SCHED_DEBUG | ||
int sched_update_scaling(void) | ||
{ | ||
unsigned int factor = get_update_sysctl_factor(); | ||
@@ -1162,7 +1306,11 @@ static void update_curr(struct cfs_rq *cfs_rq) | ||
curr->sum_exec_runtime += delta_exec; | ||
schedstat_add(cfs_rq->exec_clock, delta_exec); | ||
|