]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: intel_powerclamp: Remove accounting for IRQ wakes
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 20 Sep 2022 11:08:02 +0000 (04:08 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 21 Sep 2022 18:31:05 +0000 (20:31 +0200)
commit2ae17b0f18e82b37d528e13b955998dfc2bb6d02
treeaf4f9a76663dc1a584a02bcab7df0e2c88cd6bd9
parenta167c3ae55df63a2905cee99c864397ecb7785c0
thermal: intel_powerclamp: Remove accounting for IRQ wakes

There is a static variable "idle_wakeup_counter", which accounts for
number of wake ups because of IRQs and take actions to compensate idle
injection. This is now read and reset to 0, but never incremented.
So all the usage of this counter for idle injection has no use.

Also another static variable "reduce_irq", which depends on
"idle_wakeup_counter", so remove usage of "reduce_irq" also.

Commit 3b6b6e3ee8ac ("thermal/intel_powerclamp: stop sched tick in
forced idle") replaced the local use of "mwait_idle_with_hints" with
play_idle(). This removed possibility of updating "idle_wakeup_counter"
without change in play_idle(). This change was made in Linux 4.10.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[ rjw: Changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/intel_powerclamp.c