File tree Expand file tree Collapse file tree 4 files changed +1
-9
lines changed Expand file tree Collapse file tree 4 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -2371,7 +2371,6 @@ static struct pmu pmu = {
2371
2371
2372
2372
.event_idx = x86_pmu_event_idx ,
2373
2373
.sched_task = x86_pmu_sched_task ,
2374
- .task_ctx_size = sizeof (struct x86_perf_task_context ),
2375
2374
.swap_task_ctx = x86_pmu_swap_task_ctx ,
2376
2375
.check_period = x86_pmu_check_period ,
2377
2376
Original file line number Diff line number Diff line change @@ -1672,7 +1672,6 @@ void __init intel_pmu_arch_lbr_init(void)
1672
1672
1673
1673
size = sizeof (struct x86_perf_task_context_arch_lbr ) +
1674
1674
lbr_nr * sizeof (struct lbr_entry );
1675
- x86_get_pmu ()-> task_ctx_size = size ;
1676
1675
x86_get_pmu ()-> task_ctx_cache = create_lbr_kmem_cache (size , 0 );
1677
1676
1678
1677
x86_pmu .lbr_from = MSR_ARCH_LBR_FROM_0 ;
Original file line number Diff line number Diff line change @@ -419,10 +419,6 @@ struct pmu {
419
419
*/
420
420
void (* sched_task ) (struct perf_event_context * ctx ,
421
421
bool sched_in );
422
- /*
423
- * PMU specific data size
424
- */
425
- size_t task_ctx_size ;
426
422
427
423
/*
428
424
* Kmem cache of PMU specific data
Original file line number Diff line number Diff line change @@ -1243,15 +1243,13 @@ static void *alloc_task_ctx_data(struct pmu *pmu)
1243
1243
if (pmu -> task_ctx_cache )
1244
1244
return kmem_cache_zalloc (pmu -> task_ctx_cache , GFP_KERNEL );
1245
1245
1246
- return kzalloc ( pmu -> task_ctx_size , GFP_KERNEL ) ;
1246
+ return NULL ;
1247
1247
}
1248
1248
1249
1249
static void free_task_ctx_data (struct pmu * pmu , void * task_ctx_data )
1250
1250
{
1251
1251
if (pmu -> task_ctx_cache && task_ctx_data )
1252
1252
kmem_cache_free (pmu -> task_ctx_cache , task_ctx_data );
1253
- else
1254
- kfree (task_ctx_data );
1255
1253
}
1256
1254
1257
1255
static void free_ctx (struct rcu_head * head )
You can’t perform that action at this time.
0 commit comments