[PATCH 10/10] do nothing in cpuhp hooks

Tvrtko Ursulin tursulin at ursulin.net
Wed Oct 18 07:47:36 UTC 2017


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 drivers/gpu/drm/i915/i915_pmu.c | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_pmu.c b/drivers/gpu/drm/i915/i915_pmu.c
index 5d2c83a41b53..b6bdb4049ece 100644
--- a/drivers/gpu/drm/i915/i915_pmu.c
+++ b/drivers/gpu/drm/i915/i915_pmu.c
@@ -736,29 +736,29 @@ static const struct attribute_group *i915_pmu_attr_groups[] = {
 
 static int i915_pmu_cpu_online(unsigned int cpu, struct hlist_node *node)
 {
-	unsigned int target;
-
-	target = cpumask_any_and(&i915_pmu_cpumask, &i915_pmu_cpumask);
-	/* Select the first online CPU as a designated reader. */
-	if (target >= nr_cpu_ids)
-		cpumask_set_cpu(cpu, &i915_pmu_cpumask);
+// 	unsigned int target;
+//
+// 	target = cpumask_any_and(&i915_pmu_cpumask, &i915_pmu_cpumask);
+// 	/* Select the first online CPU as a designated reader. */
+// 	if (target >= nr_cpu_ids)
+// 		cpumask_set_cpu(cpu, &i915_pmu_cpumask);
 
 	return 0;
 }
 
 static int i915_pmu_cpu_offline(unsigned int cpu, struct hlist_node *node)
 {
-	struct i915_pmu *pmu = hlist_entry_safe(node, typeof(*pmu), node);
-	unsigned int target;
-
-	if (cpumask_test_and_clear_cpu(cpu, &i915_pmu_cpumask)) {
-		target = cpumask_any_but(topology_sibling_cpumask(cpu), cpu);
-		/* Migrate events if there is a valid target */
-		if (target < nr_cpu_ids) {
-			cpumask_set_cpu(target, &i915_pmu_cpumask);
-			perf_pmu_migrate_context(&pmu->base, cpu, target);
-		}
-	}
+// 	struct i915_pmu *pmu = hlist_entry_safe(node, typeof(*pmu), node);
+// 	unsigned int target;
+//
+// 	if (cpumask_test_and_clear_cpu(cpu, &i915_pmu_cpumask)) {
+// 		target = cpumask_any_but(topology_sibling_cpumask(cpu), cpu);
+// 		/* Migrate events if there is a valid target */
+// 		if (target < nr_cpu_ids) {
+// 			cpumask_set_cpu(target, &i915_pmu_cpumask);
+// 			perf_pmu_migrate_context(&pmu->base, cpu, target);
+// 		}
+// 	}
 
 	return 0;
 }
-- 
2.9.5



More information about the Intel-gfx-trybot mailing list