diff options
author | Kan Liang <kan.liang@linux.intel.com> | 2020-07-03 05:49:24 -0700 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2020-07-08 11:38:55 +0200 |
commit | 5a09928d339f3cf0973991ddc3a2798825c84c99 (patch) | |
tree | fbbd258f30da8487ac700e41be693bfd5f451bd8 /arch/x86/events/intel/lbr.c | |
parent | perf/x86/intel/lbr: Create kmem_cache for the LBR context data (diff) | |
download | linux-dev-5a09928d339f3cf0973991ddc3a2798825c84c99.tar.xz linux-dev-5a09928d339f3cf0973991ddc3a2798825c84c99.zip |
perf/x86: Remove task_ctx_size
A new kmem_cache method has replaced the kzalloc() to allocate the PMU
specific data. The task_ctx_size is not required anymore.
Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/1593780569-62993-19-git-send-email-kan.liang@linux.intel.com
Diffstat (limited to 'arch/x86/events/intel/lbr.c')
-rw-r--r-- | arch/x86/events/intel/lbr.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/events/intel/lbr.c b/arch/x86/events/intel/lbr.c index e784c1d485ca..3ad528996d1c 100644 --- a/arch/x86/events/intel/lbr.c +++ b/arch/x86/events/intel/lbr.c @@ -1672,7 +1672,6 @@ void __init intel_pmu_arch_lbr_init(void) size = sizeof(struct x86_perf_task_context_arch_lbr) + lbr_nr * sizeof(struct lbr_entry); - x86_get_pmu()->task_ctx_size = size; x86_get_pmu()->task_ctx_cache = create_lbr_kmem_cache(size, 0); x86_pmu.lbr_from = MSR_ARCH_LBR_FROM_0; |