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


Groups > linux.kernel > #1393250 > unrolled thread

[PATCH -next 2/2] cpufreq: powernv: del_timer_sync when global and local pstate are equal

Started byAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
First post2016-05-03 11:50 +0200
Last post2016-05-03 11:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH -next 2/2] cpufreq: powernv: del_timer_sync when global and local pstate are equal Akshay Adiga <akshay.adiga@linux.vnet.ibm.com> - 2016-05-03 11:50 +0200

#1393250 — [PATCH -next 2/2] cpufreq: powernv: del_timer_sync when global and local pstate are equal

FromAkshay Adiga <akshay.adiga@linux.vnet.ibm.com>
Date2016-05-03 11:50 +0200
Subject[PATCH -next 2/2] cpufreq: powernv: del_timer_sync when global and local pstate are equal
Message-ID<ruF7Q-5LC-3@gated-at.bofh.it>
Deleting pending gpstates->timer for the policy when global and local pstate
are equal while executing target_index(). This saves an unnecessary
irq call.

Signed-off-by: Akshay Adiga <akshay.adiga@linux.vnet.ibm.com>
---
Patch is based on Rafael's linux-next
 drivers/cpufreq/powernv-cpufreq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/powernv-cpufreq.c b/drivers/cpufreq/powernv-cpufreq.c
index 1f0e20c..54c4536 100644
--- a/drivers/cpufreq/powernv-cpufreq.c
+++ b/drivers/cpufreq/powernv-cpufreq.c
@@ -647,6 +647,8 @@ static int powernv_cpufreq_target_index(struct cpufreq_policy *policy,
 	 */
 	if (gpstate_id != freq_data.pstate_id)
 		queue_gpstate_timer(gpstates);
+	else
+		del_timer_sync(&gpstates->timer);
 
 gpstates_done:
 	freq_data.gpstate_id = gpstate_id;
-- 
2.5.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web