]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf tools: Move x86__is_amd_cpu() to util/env.c
authorNamhyung Kim <namhyung@kernel.org>
Wed, 16 Oct 2024 06:23:56 +0000 (23:23 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 22 Oct 2024 16:55:07 +0000 (09:55 -0700)
commit28398ce1726e5dfa74f6305dd842e0fb7e332ef1
treead190fc1224e93ef070a6e3d27ef96166d9b4f82
parent3b193a57baf15c468e4f86cebc694ca4fe18301b
perf tools: Move x86__is_amd_cpu() to util/env.c

It can be called from non-x86 platform so let's move it to the general
util directory.  Also add a new helper perf_env__is_x86_amd_cpu() so
that it can be called with an existing perf_env as well.

Reviewed-by: James Clark <james.clark@linaro.org>
Reviewed-by: Ravi Bangoria <ravi.bangoria@amd.com>
Acked-by: Kan Liang <kan.liang@linux.intel.com>
Cc: James Clark <james.clark@arm.com>
Cc: Atish Patra <atishp@atishpatra.org>
Cc: Mingwei Zhang <mizhang@google.com>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Palmer Dabbelt <palmer@rivosinc.com>
Link: https://lore.kernel.org/r/20241016062359.264929-7-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/arch/x86/util/Build
tools/perf/arch/x86/util/env.c [deleted file]
tools/perf/arch/x86/util/env.h [deleted file]
tools/perf/arch/x86/util/pmu.c
tools/perf/util/env.c
tools/perf/util/env.h