x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
am: 62f57041fb
Change-Id: I49a7e668ab62da72a19802ed047bb925a7fb14f0
This commit is contained in:
commit
fff3058708
1 changed files with 2 additions and 2 deletions
|
@ -1996,8 +1996,8 @@ static int x86_pmu_event_init(struct perf_event *event)
|
|||
|
||||
static void refresh_pce(void *ignored)
|
||||
{
|
||||
if (current->mm)
|
||||
load_mm_cr4(current->mm);
|
||||
if (current->active_mm)
|
||||
load_mm_cr4(current->active_mm);
|
||||
}
|
||||
|
||||
static void x86_pmu_event_mapped(struct perf_event *event)
|
||||
|
|
Loading…
Add table
Reference in a new issue