File tree Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Expand file tree Collapse file tree 5 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ config DTPM
8282
8383config DTPM_CPU
8484 bool "Add CPU power capping based on the energy model"
85- depends on DTPM && ENERGY_MODEL
85+ depends on DTPM && ENERGY_MODEL && SMP
8686 help
8787 This enables support for CPU power limitation based on
8888 energy model.
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ static u64 get_pd_power_uw(struct dtpm *dtpm)
9696 int i ;
9797
9898 pd = em_cpu_get (dtpm_cpu -> cpu );
99+ if (!pd )
100+ return 0 ;
99101
100102 pd_mask = em_span_cpus (pd );
101103
Original file line number Diff line number Diff line change @@ -1276,6 +1276,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
12761276 X86_MATCH_VFM (INTEL_RAPTORLAKE , & rapl_defaults_core ),
12771277 X86_MATCH_VFM (INTEL_RAPTORLAKE_P , & rapl_defaults_core ),
12781278 X86_MATCH_VFM (INTEL_RAPTORLAKE_S , & rapl_defaults_core ),
1279+ X86_MATCH_VFM (INTEL_BARTLETTLAKE , & rapl_defaults_core ),
12791280 X86_MATCH_VFM (INTEL_METEORLAKE , & rapl_defaults_core ),
12801281 X86_MATCH_VFM (INTEL_METEORLAKE_L , & rapl_defaults_core ),
12811282 X86_MATCH_VFM (INTEL_SAPPHIRERAPIDS_X , & rapl_defaults_spr_server ),
Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ static const struct x86_cpu_id pl4_support_ids[] = {
149149 X86_MATCH_VFM (INTEL_METEORLAKE_L , NULL ),
150150 X86_MATCH_VFM (INTEL_ARROWLAKE_U , NULL ),
151151 X86_MATCH_VFM (INTEL_ARROWLAKE_H , NULL ),
152+ X86_MATCH_VFM (INTEL_PANTHERLAKE_L , NULL ),
152153 {}
153154};
154155
Original file line number Diff line number Diff line change @@ -380,8 +380,7 @@ config CPU_PM
380380
381381config ENERGY_MODEL
382382 bool "Energy Model for devices with DVFS (CPUs, GPUs, etc)"
383- depends on SMP
384- depends on CPU_FREQ
383+ depends on CPU_FREQ || PM_DEVFREQ
385384 help
386385 Several subsystems (thermal and/or the task scheduler for example)
387386 can leverage information about the energy consumed by devices to
You can’t perform that action at this time.
0 commit comments