Commit 850337ec authored by Zhang Rui's avatar Zhang Rui Committed by Srinivas Pandruvada
Browse files

tools/power/x86/intel-speed-select: Introduce struct isst_id



SST control is power-domain based rather than cpu based, on all the
systems including Sapphire Rapids and ealier.

SST core APIs uses cpu id as parameter, and use the underlying pkg_id and
die_id information to find a power domain, this is not straight forward
and introduces obscure logics in the code.

Introduce struct isst_id to represent a SST Power Domain.

All core APIs are converted to use struct isst_id as parameter instead of
using cpu id.

Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
Signed-off-by: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
parent e2783369
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -181,7 +181,10 @@ struct perf_cap {

static void process_hfi_event(struct perf_cap *perf_cap)
{
	process_level_change(perf_cap->cpu);
	struct isst_id id;

	set_isst_id(&id, perf_cap->cpu);
	process_level_change(&id);
}

static int handle_event(struct nl_msg *n, void *arg)
+158 −139

File changed.

Preview size limit exceeded, changes collapsed.

+145 −145

File changed.

Preview size limit exceeded, changes collapsed.

+12 −12

File changed.

Preview size limit exceeded, changes collapsed.

+38 −38

File changed.

Preview size limit exceeded, changes collapsed.

Loading