Skip to contentSkip to conversation

x86/itmt: Remove unnecessary check to update topology

PATCH New Tim Chen 2 participants 2 messages Jan 18, 2017 – Jan 19, 2017

Subsystems (2)
lore
Share & tools
lore

Tim Chen

author
#0 lore raw

PATCH 1/1 x86/itmt: Remove unnecessary check to update topology

Scheduling to max performance core is enabled by default for Turbo Boost Maxt Technology 3.0 capable platforms. Remove useless sysctl_sched_itmt_enabled check to update sched topology for adding prioritized core scheduling flag.

---
 arch/x86/kernel/itmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/x86/kernel/itmt.c +2 -4
index cb9c1ed..f73f475 100644
@@ -132,10 +132,8 @@ int sched_set_itmt_support(void)
 
 	sysctl_sched_itmt_enabled = 1;
 
-	if (sysctl_sched_itmt_enabled) {
-		x86_topology_update = true;
-		rebuild_sched_domains();
-	}
+	x86_topology_update = true;
+	rebuild_sched_domains();
 
 	mutex_unlock(&itmt_update_mutex);
 
Signature · 1 line
2.5.5
#1 lore raw

[tip:sched/core] sched/x86: Remove unnecessary TBM3 check to update topology

sched/x86: Remove unnecessary TBM3 check to update topology
Commit-ID:  02cfdc95a0104fa5812d855d1e4ec687312aaa6f
Gitweb:     http://git.kernel.org/tip/02cfdc95a0104fa5812d855d1e4ec687312aaa6f
Author:     Tim Chen <[email protected]>
AuthorDate: Wed, 18 Jan 2017 14:30:29 -0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 19 Jan 2017 08:42:37 +0100

sched/x86: Remove unnecessary TBM3 check to update topology

Scheduling to the max performance core is enabled by default for Turbo Boost Maxt Technology 3.0 capable platforms.

Remove the useless sysctl_sched_itmt_enabled check to update sched topology for adding the prioritized core scheduling flag.

---
 arch/x86/kernel/itmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
arch/x86/kernel/itmt.c +2 -4
index cb9c1ed..f73f475 100644
@@ -132,10 +132,8 @@ int sched_set_itmt_support(void)
 
 	sysctl_sched_itmt_enabled = 1;
 
-	if (sysctl_sched_itmt_enabled) {
-		x86_topology_update = true;
-		rebuild_sched_domains();
-	}
+	x86_topology_update = true;
+	rebuild_sched_domains();
 
 	mutex_unlock(&itmt_update_mutex);