Skip to content

Commit 96a4921

Browse files
committed
Revert "cpufreq: phytium: bugfix the null pointer of boost in high temperature"
This reverts commit 95a7453. Signed-off-by: Wentao Guan <[email protected]>
1 parent 6bfdc44 commit 96a4921

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/cpufreq/cpufreq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2829,7 +2829,7 @@ int cpufreq_boost_trigger_state(int state)
28292829
bool cpufreq_boost_supported(void)
28302830
{
28312831
if (!cpufreq_driver)
2832-
return 0;
2832+
return -EINVAL;
28332833

28342834
return cpufreq_driver->set_boost;
28352835
}
@@ -2871,7 +2871,7 @@ EXPORT_SYMBOL_GPL(cpufreq_enable_boost_support);
28712871
int cpufreq_boost_enabled(void)
28722872
{
28732873
if (!cpufreq_driver)
2874-
return 0;
2874+
return -EINVAL;
28752875

28762876
return cpufreq_driver->boost_enabled;
28772877
}

0 commit comments

Comments
 (0)