Lines Matching refs:cppc_state
86 static int cppc_state = AMD_PSTATE_UNDEFINED; variable
349 if (cppc_state == AMD_PSTATE_ACTIVE) { in cppc_enable()
405 if (cppc_state == AMD_PSTATE_ACTIVE) in cppc_init_perf()
415 (cppc_state == AMD_PSTATE_PASSIVE) ? 0 : 1); in cppc_init_perf()
494 if ((cppc_state == AMD_PSTATE_GUIDED) && (gov_flags & CPUFREQ_GOV_DYNAMIC_SWITCHING)) { in amd_pstate_update()
703 if (cppc_state == AMD_PSTATE_PASSIVE) { in amd_pstate_cpu_boost_update()
1193 cppc_state = AMD_PSTATE_DISABLE; in amd_pstate_driver_cleanup()
1208 cppc_state = mode; in amd_pstate_register_driver()
1238 cppc_state = mode; in amd_pstate_change_mode_without_dvr_change()
1240 if (cpu_feature_enabled(X86_FEATURE_CPPC) || cppc_state == AMD_PSTATE_ACTIVE) in amd_pstate_change_mode_without_dvr_change()
1244 cppc_set_auto_sel(cpu, (cppc_state == AMD_PSTATE_PASSIVE) ? 0 : 1); in amd_pstate_change_mode_without_dvr_change()
1297 return sysfs_emit(buf, "%s\n", amd_pstate_mode_string[cppc_state]); in amd_pstate_show_status()
1312 if (mode_state_machine[cppc_state][mode_idx]) in amd_pstate_update_status()
1313 return mode_state_machine[cppc_state][mode_idx](mode_idx); in amd_pstate_update_status()
1630 if (cppc_state == AMD_PSTATE_ACTIVE) { in amd_pstate_epp_cpu_online()
1676 if (cppc_state == AMD_PSTATE_ACTIVE) in amd_pstate_epp_cpu_offline()
1695 if (cppc_state != AMD_PSTATE_ACTIVE) in amd_pstate_epp_suspend()
1761 cppc_state = mode_idx; in amd_pstate_set_driver()
1762 if (cppc_state == AMD_PSTATE_DISABLE) in amd_pstate_set_driver()
1765 if (cppc_state == AMD_PSTATE_ACTIVE) in amd_pstate_set_driver()
1768 if (cppc_state == AMD_PSTATE_PASSIVE || cppc_state == AMD_PSTATE_GUIDED) in amd_pstate_set_driver()
1864 if (cppc_state == AMD_PSTATE_UNDEFINED) { in amd_pstate_init()
1875 cppc_state = CONFIG_X86_AMD_PSTATE_DEFAULT_MODE; in amd_pstate_init()
1878 switch (cppc_state) { in amd_pstate_init()
1885 ret = amd_pstate_set_driver(cppc_state); in amd_pstate_init()
1896 if (cppc_state != AMD_PSTATE_ACTIVE) in amd_pstate_init()
1914 pr_err("failed to enable driver mode(%d)\n", cppc_state); in amd_pstate_init()