|
|
@@ -2,6 +2,7 @@
|
|
|
#include <linux/ftrace.h>
|
|
|
#include <linux/percpu.h>
|
|
|
#include <linux/slab.h>
|
|
|
+#include <linux/uaccess.h>
|
|
|
#include <asm/alternative.h>
|
|
|
#include <asm/cacheflush.h>
|
|
|
#include <asm/cpufeature.h>
|
|
|
@@ -51,8 +52,7 @@ void notrace __cpu_suspend_exit(void)
|
|
|
* PSTATE was not saved over suspend/resume, re-enable any detected
|
|
|
* features that might not have been set correctly.
|
|
|
*/
|
|
|
- asm(ALTERNATIVE("nop", SET_PSTATE_PAN(1), ARM64_HAS_PAN,
|
|
|
- CONFIG_ARM64_PAN));
|
|
|
+ __uaccess_enable_hw_pan();
|
|
|
uao_thread_switch(current);
|
|
|
|
|
|
/*
|