Skip to content

Commit 5131a3c

Browse files
Perry Yuanrafaeljw
authored andcommitted
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 <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Perry Yuan <[email protected]> Reviewed-by: Mario Limonciello <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent eb8b6c3 commit 5131a3c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

drivers/cpufreq/amd-pstate.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ static void amd_pstate_update_limits(unsigned int cpu)
792792
mutex_unlock(&amd_pstate_driver_lock);
793793
}
794794

795-
/**
795+
/*
796796
* Get pstate transition delay time from ACPI tables that firmware set
797797
* instead of using hardcode value directly.
798798
*/
@@ -807,7 +807,7 @@ static u32 amd_pstate_get_transition_delay_us(unsigned int cpu)
807807
return transition_delay_ns / NSEC_PER_USEC;
808808
}
809809

810-
/**
810+
/*
811811
* Get pstate transition latency value from ACPI tables that firmware
812812
* set instead of using hardcode value directly.
813813
*/
@@ -822,7 +822,7 @@ static u32 amd_pstate_get_transition_latency(unsigned int cpu)
822822
return transition_latency;
823823
}
824824

825-
/**
825+
/*
826826
* amd_pstate_init_freq: Initialize the max_freq, min_freq,
827827
* nominal_freq and lowest_nonlinear_freq for
828828
* the @cpudata object.
@@ -843,7 +843,6 @@ static int amd_pstate_init_freq(struct amd_cpudata *cpudata)
843843
u32 boost_ratio, lowest_nonlinear_ratio;
844844
struct cppc_perf_caps cppc_perf;
845845

846-
847846
ret = cppc_get_perf_caps(cpudata->cpu, &cppc_perf);
848847
if (ret)
849848
return ret;

0 commit comments

Comments
 (0)