Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'thermal-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull thermal control update from Rafael Wysocki:
"Remove some dead code from the Intel powerclamp thermal control driver
(Srinivas Pandruvada)"

* tag 'thermal-6.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
thermal: intel: powerclamp: Remove dead code for target mwait value

-32
-32
drivers/thermal/intel/intel_powerclamp.c
··· 49 49 */ 50 50 #define DEFAULT_DURATION_JIFFIES (6) 51 51 52 - static unsigned int target_mwait; 53 52 static struct dentry *debug_dir; 54 53 static bool poll_pkg_cstate_enable; 55 54 ··· 310 311 "\tpowerclamp controls idle ratio within this window. larger\n" 311 312 "\twindow size results in slower response time but more smooth\n" 312 313 "\tclamping results. default to 2."); 313 - 314 - static void find_target_mwait(void) 315 - { 316 - unsigned int eax, ebx, ecx, edx; 317 - unsigned int highest_cstate = 0; 318 - unsigned int highest_subcstate = 0; 319 - int i; 320 - 321 - if (boot_cpu_data.cpuid_level < CPUID_MWAIT_LEAF) 322 - return; 323 - 324 - cpuid(CPUID_MWAIT_LEAF, &eax, &ebx, &ecx, &edx); 325 - 326 - if (!(ecx & CPUID5_ECX_EXTENSIONS_SUPPORTED) || 327 - !(ecx & CPUID5_ECX_INTERRUPT_BREAK)) 328 - return; 329 - 330 - edx >>= MWAIT_SUBSTATE_SIZE; 331 - for (i = 0; i < 7 && edx; i++, edx >>= MWAIT_SUBSTATE_SIZE) { 332 - if (edx & MWAIT_SUBSTATE_MASK) { 333 - highest_cstate = i; 334 - highest_subcstate = edx & MWAIT_SUBSTATE_MASK; 335 - } 336 - } 337 - target_mwait = (highest_cstate << MWAIT_SUBSTATE_SIZE) | 338 - (highest_subcstate - 1); 339 - 340 - } 341 314 342 315 struct pkg_cstate_info { 343 316 bool skip; ··· 729 758 pr_info("No package C-state available\n"); 730 759 return -ENODEV; 731 760 } 732 - 733 - /* find the deepest mwait value */ 734 - find_target_mwait(); 735 761 736 762 return 0; 737 763 }