File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1859,12 +1859,6 @@ static int __init amd_pstate_init(void)
1859
1859
return - ENODEV ;
1860
1860
}
1861
1861
1862
- ret = amd_pstate_register_driver (cppc_state );
1863
- if (ret ) {
1864
- pr_err ("failed to register with return %d\n" , ret );
1865
- return ret ;
1866
- }
1867
-
1868
1862
/* capability check */
1869
1863
if (cpu_feature_enabled (X86_FEATURE_CPPC )) {
1870
1864
pr_debug ("AMD CPPC MSR based functionality is supported\n" );
@@ -1875,6 +1869,12 @@ static int __init amd_pstate_init(void)
1875
1869
static_call_update (amd_pstate_update_perf , shmem_update_perf );
1876
1870
}
1877
1871
1872
+ ret = amd_pstate_register_driver (cppc_state );
1873
+ if (ret ) {
1874
+ pr_err ("failed to register with return %d\n" , ret );
1875
+ return ret ;
1876
+ }
1877
+
1878
1878
if (amd_pstate_prefcore ) {
1879
1879
ret = amd_detect_prefcore (& amd_pstate_prefcore );
1880
1880
if (ret )
You can’t perform that action at this time.
0 commit comments