aboutsummaryrefslogtreecommitdiff
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorGravatar Perry Yuan <perry.yuan@amd.com> 2024-04-30 15:48:56 +0800
committerGravatar Rafael J. Wysocki <rafael.j.wysocki@intel.com> 2024-04-30 12:23:06 +0200
commit5131a3ca3518d726cb535543441a5f195b8b0299 (patch)
treed02a0c1753b8b2f43f667c28483918733b8db4d9 /drivers/cpufreq
parentcpufreq: amd-pstate: Add quirk for the pstate CPPC capabilities missing (diff)
downloadlinux-5131a3ca3518d726cb535543441a5f195b8b0299.tar.gz
linux-5131a3ca3518d726cb535543441a5f195b8b0299.tar.bz2
linux-5131a3ca3518d726cb535543441a5f195b8b0299.zip
cpufreq: amd-pstate: fix code format problems
get some code format problems fixed in the amd-pstate driver. Changes Made: - Fixed incorrect comment format in the functions. - Removed unnecessary blank line. Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202404271148.HK9yHBlB-lkp@intel.com/ Signed-off-by: Perry Yuan <perry.yuan@amd.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/amd-pstate.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
index 83a29b257794..85656342a101 100644
--- a/drivers/cpufreq/amd-pstate.c
+++ b/drivers/cpufreq/amd-pstate.c
@@ -792,7 +792,7 @@ free_cpufreq_put:
mutex_unlock(&amd_pstate_driver_lock);
}
-/**
+/*
* Get pstate transition delay time from ACPI tables that firmware set
* instead of using hardcode value directly.
*/
@@ -807,7 +807,7 @@ static u32 amd_pstate_get_transition_delay_us(unsigned int cpu)
return transition_delay_ns / NSEC_PER_USEC;
}
-/**
+/*
* Get pstate transition latency value from ACPI tables that firmware
* set instead of using hardcode value directly.
*/
@@ -822,7 +822,7 @@ static u32 amd_pstate_get_transition_latency(unsigned int cpu)
return transition_latency;
}
-/**
+/*
* amd_pstate_init_freq: Initialize the max_freq, min_freq,
* nominal_freq and lowest_nonlinear_freq for
* the @cpudata object.
@@ -843,7 +843,6 @@ static int amd_pstate_init_freq(struct amd_cpudata *cpudata)
u32 boost_ratio, lowest_nonlinear_ratio;
struct cppc_perf_caps cppc_perf;
-
ret = cppc_get_perf_caps(cpudata->cpu, &cppc_perf);
if (ret)
return ret;