projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
arm64: suspend: Reconfigure PSTATE after resume from idle
[linux-2.6-block.git]
/
arch
/
arm64
/
kernel
/
process.c
diff --git
a/arch/arm64/kernel/process.c
b/arch/arm64/kernel/process.c
index a4f5f766af08b010e66ec04889c098a5267eee05..4f186c56c5ebfa393141c6495b5a1704b2336fa0 100644
(file)
--- a/
arch/arm64/kernel/process.c
+++ b/
arch/arm64/kernel/process.c
@@
-49,6
+49,7
@@
#include <asm/alternative.h>
#include <asm/compat.h>
#include <asm/cacheflush.h>
#include <asm/alternative.h>
#include <asm/compat.h>
#include <asm/cacheflush.h>
+#include <asm/exec.h>
#include <asm/fpsimd.h>
#include <asm/mmu_context.h>
#include <asm/processor.h>
#include <asm/fpsimd.h>
#include <asm/mmu_context.h>
#include <asm/processor.h>
@@
-301,7
+302,7
@@
static void tls_thread_switch(struct task_struct *next)
}
/* Restore the UAO state depending on next's addr_limit */
}
/* Restore the UAO state depending on next's addr_limit */
-
static
void uao_thread_switch(struct task_struct *next)
+void uao_thread_switch(struct task_struct *next)
{
if (IS_ENABLED(CONFIG_ARM64_UAO)) {
if (task_thread_info(next)->addr_limit == KERNEL_DS)
{
if (IS_ENABLED(CONFIG_ARM64_UAO)) {
if (task_thread_info(next)->addr_limit == KERNEL_DS)
@@
-372,12
+373,8
@@
unsigned long arch_align_stack(unsigned long sp)
unsigned long arch_randomize_brk(struct mm_struct *mm)
{
unsigned long arch_randomize_brk(struct mm_struct *mm)
{
- unsigned long range_end = mm->brk;
-
if (is_compat_task())
if (is_compat_task())
- r
ange_end += 0x02000000
;
+ r
eturn randomize_page(mm->brk, 0x02000000)
;
else
else
- range_end += 0x40000000;
-
- return randomize_range(mm->brk, range_end, 0) ? : mm->brk;
+ return randomize_page(mm->brk, 0x40000000);
}
}