Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78e7ed53 authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

sched: Tweak wake_idx



When merging select_task_rq_fair() and sched_balance_self() we lost
the use of wake_idx, restore that and set them to 0 to make wake
balancing more aggressive.

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent d7c33c49
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -62,11 +62,12 @@ void build_cpu_to_node_map(void);
	.busy_idx		= 2,			\
	.idle_idx		= 1,			\
	.newidle_idx		= 2,			\
	.wake_idx		= 1,			\
	.wake_idx		= 0,			\
	.forkexec_idx		= 1,			\
	.flags			= SD_LOAD_BALANCE	\
				| SD_BALANCE_NEWIDLE	\
				| SD_BALANCE_EXEC	\
				| SD_BALANCE_FORK	\
				| SD_BALANCE_WAKE	\
				| SD_WAKE_AFFINE,	\
	.last_balance		= jiffies,		\
@@ -87,7 +88,7 @@ void build_cpu_to_node_map(void);
	.busy_idx		= 3,			\
	.idle_idx		= 2,			\
	.newidle_idx		= 2,			\
	.wake_idx		= 1,			\
	.wake_idx		= 0,			\
	.forkexec_idx		= 1,			\
	.flags			= SD_LOAD_BALANCE	\
				| SD_BALANCE_EXEC	\
+2 −1
Original line number Diff line number Diff line
@@ -58,9 +58,10 @@ static inline int pcibus_to_node(struct pci_bus *bus)
	.busy_idx		= 3,			\
	.idle_idx		= 1,			\
	.newidle_idx		= 2,			\
	.wake_idx		= 1,			\
	.wake_idx		= 0,			\
	.flags			= SD_LOAD_BALANCE	\
				| SD_BALANCE_EXEC	\
				| SD_BALANCE_FORK	\
				| SD_BALANCE_NEWIDLE	\
				| SD_BALANCE_WAKE	\
				| SD_SERIALIZE,		\
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
	.busy_idx		= 3,			\
	.idle_idx		= 2,			\
	.newidle_idx		= 2,			\
	.wake_idx		= 1,			\
	.wake_idx		= 0,			\
	.forkexec_idx		= 1,			\
	.flags			= SD_LOAD_BALANCE	\
				| SD_BALANCE_FORK	\
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ static inline int pcibus_to_node(struct pci_bus *pbus)
	.busy_idx		= 3,			\
	.idle_idx		= 2,			\
	.newidle_idx		= 0, 			\
	.wake_idx		= 1,			\
	.wake_idx		= 0,			\
	.forkexec_idx		= 1,			\
	.flags			= SD_LOAD_BALANCE	\
				| SD_BALANCE_FORK	\
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ extern unsigned long node_remap_size[];
	.busy_idx		= 3,					\
	.idle_idx		= SD_IDLE_IDX,				\
	.newidle_idx		= SD_NEWIDLE_IDX,			\
	.wake_idx		= 1,					\
	.wake_idx		= 0,					\
	.forkexec_idx		= SD_FORKEXEC_IDX,			\
									\
	.flags			= 1*SD_LOAD_BALANCE			\
Loading