Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1562242 > unrolled thread

[PATCH] x86/itmt: Remove unnecessary check to update topology

Started byTim Chen <tim.c.chen@linux.intel.com>
First post2017-01-18 23:40 +0100
Last post2017-01-19 11:50 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] x86/itmt: Remove unnecessary check to update topology Tim Chen <tim.c.chen@linux.intel.com> - 2017-01-18 23:40 +0100
    [tip:sched/core] sched/x86: Remove unnecessary TBM3 check to update  topology tip-bot for Tim Chen <tipbot@zytor.com> - 2017-01-19 11:50 +0100

#1562242 — [PATCH] x86/itmt: Remove unnecessary check to update topology

FromTim Chen <tim.c.chen@linux.intel.com>
Date2017-01-18 23:40 +0100
Subject[PATCH] x86/itmt: Remove unnecessary check to update topology
Message-ID<t173A-1z7-25@gated-at.bofh.it>
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.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
---
 arch/x86/kernel/itmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/itmt.c b/arch/x86/kernel/itmt.c
index cb9c1ed..f73f475 100644
--- a/arch/x86/kernel/itmt.c
+++ b/arch/x86/kernel/itmt.c
@@ -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);
 
-- 
2.5.5

[toc] | [next] | [standalone]


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

Fromtip-bot for Tim Chen <tipbot@zytor.com>
Date2017-01-19 11:50 +0100
Subject[tip:sched/core] sched/x86: Remove unnecessary TBM3 check to update topology
Message-ID<t1is3-qM-43@gated-at.bofh.it>
In reply to#1562242
Commit-ID:  02cfdc95a0104fa5812d855d1e4ec687312aaa6f
Gitweb:     http://git.kernel.org/tip/02cfdc95a0104fa5812d855d1e4ec687312aaa6f
Author:     Tim Chen <tim.c.chen@linux.intel.com>
AuthorDate: Wed, 18 Jan 2017 14:30:29 -0800
Committer:  Ingo Molnar <mingo@kernel.org>
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.

Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: bp@suse.de
Cc: jolsa@redhat.com
Cc: linux-acpi@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Cc: rjw@rjwysocki.net
Link: http://lkml.kernel.org/r/1484778629-4404-1-git-send-email-tim.c.chen@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
 arch/x86/kernel/itmt.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/arch/x86/kernel/itmt.c b/arch/x86/kernel/itmt.c
index cb9c1ed..f73f475 100644
--- a/arch/x86/kernel/itmt.c
+++ b/arch/x86/kernel/itmt.c
@@ -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);
 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web