From 0298ac9c9b2bab88cd64d0ab6f60044c841ff746 Mon Sep 17 00:00:00 2001 From: Nick Piggin Date: Mon, 18 Oct 2004 09:10:13 -0700 Subject: [PATCH] [PATCH] sched: enable SD_LOAD_BALANCE Actually turn on SD_LOAD_BALANCE for the regular domains. Introduced by 5/8 "sched add load balance flag". Signed-off-by: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/sched.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 7f6608ed3ce8a..0e089c693b811 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -499,7 +499,8 @@ extern void cpu_attach_domain(struct sched_domain *sd, int cpu); .cache_hot_time = 0, \ .cache_nice_tries = 0, \ .per_cpu_gain = 25, \ - .flags = SD_BALANCE_NEWIDLE \ + .flags = SD_LOAD_BALANCE \ + | SD_BALANCE_NEWIDLE \ | SD_BALANCE_EXEC \ | SD_WAKE_AFFINE \ | SD_WAKE_IDLE \ @@ -522,7 +523,8 @@ extern void cpu_attach_domain(struct sched_domain *sd, int cpu); .cache_hot_time = (5*1000/2), \ .cache_nice_tries = 1, \ .per_cpu_gain = 100, \ - .flags = SD_BALANCE_NEWIDLE \ + .flags = SD_LOAD_BALANCE \ + | SD_BALANCE_NEWIDLE \ | SD_BALANCE_EXEC \ | SD_WAKE_AFFINE \ | SD_WAKE_BALANCE, \ @@ -543,7 +545,8 @@ extern void cpu_attach_domain(struct sched_domain *sd, int cpu); .cache_hot_time = (10*1000), \ .cache_nice_tries = 1, \ .per_cpu_gain = 100, \ - .flags = SD_BALANCE_EXEC \ + .flags = SD_LOAD_BALANCE \ + | SD_BALANCE_EXEC \ | SD_WAKE_BALANCE, \ .last_balance = jiffies, \ .balance_interval = 1, \ -- 2.53.0