Skip to content

Commit 9624e83

Browse files
committed
Revert "FROMEXT: sched: linux6.18.18-bore-6.6.2"
This reverts commit 39c5dcb.
1 parent e1862af commit 9624e83

13 files changed

Lines changed: 11 additions & 747 deletions

File tree

include/linux/sched.h

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -817,37 +817,6 @@ struct kmap_ctrl {
817817
#endif
818818
};
819819

820-
#ifdef CONFIG_SCHED_BORE
821-
#define BORE_BC_TIMESTAMP_SHIFT 16
822-
823-
struct bore_bc {
824-
union {
825-
struct {
826-
u64 timestamp: 48;
827-
u64 penalty: 16;
828-
};
829-
u64 value;
830-
};
831-
};
832-
833-
struct bore_ctx {
834-
u64 burst_time;
835-
u16 prev_penalty;
836-
u16 curr_penalty;
837-
union {
838-
u16 penalty;
839-
struct {
840-
u8 _;
841-
u8 score;
842-
};
843-
};
844-
bool stop_update;
845-
bool futex_waiting;
846-
struct bore_bc subtree;
847-
struct bore_bc group;
848-
};
849-
#endif /* CONFIG_SCHED_BORE */
850-
851820
struct task_struct {
852821
#ifdef CONFIG_THREAD_INFO_IN_TASK
853822
/*
@@ -906,9 +875,6 @@ struct task_struct {
906875
#ifdef CONFIG_SCHED_CLASS_EXT
907876
struct sched_ext_entity scx;
908877
#endif
909-
#ifdef CONFIG_SCHED_BORE
910-
struct bore_ctx bore;
911-
#endif /* CONFIG_SCHED_BORE */
912878
const struct sched_class *sched_class;
913879

914880
#ifdef CONFIG_SCHED_CORE

include/linux/sched/bore.h

Lines changed: 0 additions & 41 deletions
This file was deleted.

init/Kconfig

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,23 +1423,6 @@ config CHECKPOINT_RESTORE
14231423

14241424
If unsure, say N here.
14251425

1426-
config SCHED_BORE
1427-
bool "Burst-Oriented Response Enhancer"
1428-
default y
1429-
help
1430-
In Desktop and Mobile computing, one might prefer interactive
1431-
tasks to keep responsive no matter what they run in the background.
1432-
1433-
Enabling this kernel feature modifies the scheduler to discriminate
1434-
tasks by their burst time (runtime since it last went sleeping or
1435-
yielding state) and prioritize those that run less bursty.
1436-
Such tasks usually include window compositor, widgets backend,
1437-
terminal emulator, video playback, games and so on.
1438-
With a little impact to scheduling fairness, it may improve
1439-
responsiveness especially under heavy background workload.
1440-
1441-
If unsure, say Y here.
1442-
14431426
config SCHED_AUTOGROUP
14441427
bool "Automatic process group scheduling"
14451428
select CGROUPS

kernel/Kconfig.hz

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,3 @@ config HZ
5757

5858
config SCHED_HRTICK
5959
def_bool HIGH_RES_TIMERS
60-
61-
config MIN_BASE_SLICE_NS
62-
int "Default value for min_base_slice_ns"
63-
default 2000000
64-
help
65-
The BORE Scheduler automatically calculates the optimal base
66-
slice for the configured HZ using the following equation:
67-
68-
base_slice_ns =
69-
1000000000/HZ * DIV_ROUNDUP(min_base_slice_ns, 1000000000/HZ)
70-
71-
This option sets the default lower bound limit of the base slice
72-
to prevent the loss of task throughput due to overscheduling.
73-
74-
Setting this value too high can cause the system to boot with
75-
an unnecessarily large base slice, resulting in high scheduling
76-
latency and poor system responsiveness.

kernel/exit.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ static void __unhash_process(struct release_task_post *post, struct task_struct
147147
detach_pid(post->pids, p, PIDTYPE_SID);
148148

149149
list_del_rcu(&p->tasks);
150-
#ifdef CONFIG_SCHED_BORE
151-
list_del_rcu(&p->sibling);
152-
#else /* !CONFIG_SCHED_BORE */
153150
list_del_init(&p->sibling);
154-
#endif /* CONFIG_SCHED_BORE */
155151
__this_cpu_dec(process_counts);
156152
}
157153
list_del_rcu(&p->thread_node);

kernel/fork.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@
116116
/* For dup_mmap(). */
117117
#include "../mm/internal.h"
118118

119-
#ifdef CONFIG_SCHED_BORE
120-
#include <linux/sched/bore.h>
121-
#endif /* CONFIG_SCHED_BORE */
122-
123119
#include <trace/events/sched.h>
124120

125121
#define CREATE_TRACE_POINTS
@@ -2324,11 +2320,6 @@ __latent_entropy struct task_struct *copy_process(
23242320
p->start_time = ktime_get_ns();
23252321
p->start_boottime = ktime_get_boottime_ns();
23262322

2327-
#ifdef CONFIG_SCHED_BORE
2328-
if (likely(p->pid))
2329-
task_fork_bore(p, current, clone_flags, p->start_time);
2330-
#endif /* CONFIG_SCHED_BORE */
2331-
23322323
/*
23332324
* Make it visible to the rest of the system, but dont wake it up yet.
23342325
* Need tasklist lock for parent etc handling!
@@ -2402,11 +2393,7 @@ __latent_entropy struct task_struct *copy_process(
24022393
*/
24032394
p->signal->has_child_subreaper = p->real_parent->signal->has_child_subreaper ||
24042395
p->real_parent->signal->is_child_subreaper;
2405-
#ifdef CONFIG_SCHED_BORE
2406-
list_add_tail_rcu(&p->sibling, &p->real_parent->children);
2407-
#else /* !CONFIG_SCHED_BORE */
24082396
list_add_tail(&p->sibling, &p->real_parent->children);
2409-
#endif /* CONFIG_SCHED_BORE */
24102397
list_add_tail_rcu(&p->tasks, &init_task.tasks);
24112398
attach_pid(p, PIDTYPE_TGID);
24122399
attach_pid(p, PIDTYPE_PGID);

kernel/futex/waitwake.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
#include <linux/sched/task.h>
55
#include <linux/sched/signal.h>
66
#include <linux/freezer.h>
7-
#ifdef CONFIG_SCHED_BORE
8-
#include <linux/sched/bore.h>
9-
#endif /* CONFIG_SCHED_BORE */
107

118
#include "futex.h"
129

@@ -358,15 +355,7 @@ void futex_do_wait(struct futex_q *q, struct hrtimer_sleeper *timeout)
358355
* is no timeout, or if it has yet to expire.
359356
*/
360357
if (!timeout || timeout->task)
361-
#ifdef CONFIG_SCHED_BORE
362-
{
363-
current->bore.futex_waiting = true;
364-
#endif /* CONFIG_SCHED_BORE */
365358
schedule();
366-
#ifdef CONFIG_SCHED_BORE
367-
current->bore.futex_waiting = false;
368-
}
369-
#endif /* CONFIG_SCHED_BORE */
370359
}
371360
__set_current_state(TASK_RUNNING);
372361
}

kernel/sched/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ obj-y += core.o
3737
obj-y += fair.o
3838
obj-y += build_policy.o
3939
obj-y += build_utility.o
40-
obj-$(CONFIG_SCHED_BORE) += bore.o

0 commit comments

Comments
 (0)