mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
x86/perf: Fix CR4.PCE propagation to use active_mm instead of mm
am: 9f9115b67a
Change-Id: Iba2e68a6123db4af16b8adc652405f8b4255b393
This commit is contained in:
@@ -2096,8 +2096,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)
|
||||
|
||||
Reference in New Issue
Block a user