]> Gentwo Git Trees - linux/.git/commit
perf/x86/intel/bts: Allocate bts_ctx only if necessary
authorLi RongQing <lirongqing@baidu.com>
Wed, 22 Jan 2025 07:41:03 +0000 (15:41 +0800)
committerIngo Molnar <mingo@kernel.org>
Sat, 22 Feb 2025 12:43:35 +0000 (13:43 +0100)
commit3acfcefa795c6cfb08c68467060bd7aa30557077
tree734dabfdeed809652b185c2df4495afcab1e341c
parent8aeacf257070469ff78a998a968a61d0cadc0de3
perf/x86/intel/bts: Allocate bts_ctx only if necessary

Avoid unnecessary per-CPU memory allocation on unsupported CPUs,
this can save 12K memory for each CPU

Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20250122074103.3091-1-lirongqing@baidu.com
arch/x86/events/intel/bts.c