diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-17 06:52:15 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-17 06:56:49 -0400 |
commit | eadb8a091b27a840de7450f84ecff5ef13476424 (patch) | |
tree | 58c3782d40def63baa8167f3d31e3048cb4c7660 /arch/x86/kernel/process_32.c | |
parent | 73874005cd8800440be4299bd095387fff4b90ac (diff) | |
parent | 65795efbd380a832ae508b04dba8f8e53f0b84d9 (diff) |
Merge branch 'linus' into tracing/hw-breakpoints
Conflicts:
arch/x86/Kconfig
arch/x86/kernel/traps.c
arch/x86/power/cpu.c
arch/x86/power/cpu_32.c
kernel/Makefile
Semantic conflict:
arch/x86/kernel/hw_breakpoint.c
Merge reason: Resolve the conflicts, move from put_cpu_no_sched() to
put_cpu() in arch/x86/kernel/hw_breakpoint.c.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r-- | arch/x86/kernel/process_32.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 297ffff2ffc2..00a8fe4c58bb 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c | |||
@@ -9,8 +9,6 @@ | |||
9 | * This file handles the architecture-dependent parts of process handling.. | 9 | * This file handles the architecture-dependent parts of process handling.. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <stdarg.h> | ||
13 | |||
14 | #include <linux/stackprotector.h> | 12 | #include <linux/stackprotector.h> |
15 | #include <linux/cpu.h> | 13 | #include <linux/cpu.h> |
16 | #include <linux/errno.h> | 14 | #include <linux/errno.h> |
@@ -33,7 +31,6 @@ | |||
33 | #include <linux/module.h> | 31 | #include <linux/module.h> |
34 | #include <linux/kallsyms.h> | 32 | #include <linux/kallsyms.h> |
35 | #include <linux/ptrace.h> | 33 | #include <linux/ptrace.h> |
36 | #include <linux/random.h> | ||
37 | #include <linux/personality.h> | 34 | #include <linux/personality.h> |
38 | #include <linux/tick.h> | 35 | #include <linux/tick.h> |
39 | #include <linux/percpu.h> | 36 | #include <linux/percpu.h> |
@@ -419,7 +416,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) | |||
419 | * done before math_state_restore, so the TS bit is up | 416 | * done before math_state_restore, so the TS bit is up |
420 | * to date. | 417 | * to date. |
421 | */ | 418 | */ |
422 | arch_leave_lazy_cpu_mode(); | 419 | arch_end_context_switch(next_p); |
423 | 420 | ||
424 | /* If the task has used fpu the last 5 timeslices, just do a full | 421 | /* If the task has used fpu the last 5 timeslices, just do a full |
425 | * restore of the math state immediately to avoid the trap; the | 422 | * restore of the math state immediately to avoid the trap; the |
@@ -526,15 +523,3 @@ unsigned long get_wchan(struct task_struct *p) | |||
526 | return 0; | 523 | return 0; |
527 | } | 524 | } |
528 | 525 | ||
529 | unsigned long arch_align_stack(unsigned long sp) | ||
530 | { | ||
531 | if (!(current->personality & ADDR_NO_RANDOMIZE) && randomize_va_space) | ||
532 | sp -= get_random_int() % 8192; | ||
533 | return sp & ~0xf; | ||
534 | } | ||
535 | |||
536 | unsigned long arch_randomize_brk(struct mm_struct *mm) | ||
537 | { | ||
538 | unsigned long range_end = mm->brk + 0x02000000; | ||
539 | return randomize_range(mm->brk, range_end, 0) ? : mm->brk; | ||
540 | } | ||