process.c (5b929bd11df23922daf1be5d52731cc3900c1d79) | process.c (9fda6a0681e070b496235b132bc70ceb80300211) |
---|---|
1#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 2 3#include <linux/errno.h> 4#include <linux/kernel.h> 5#include <linux/mm.h> 6#include <linux/smp.h> 7#include <linux/prctl.h> 8#include <linux/slab.h> --- 15 unchanged lines hidden (view full) --- 24#include <asm/syscalls.h> 25#include <asm/idle.h> 26#include <asm/uaccess.h> 27#include <asm/mwait.h> 28#include <asm/fpu/internal.h> 29#include <asm/debugreg.h> 30#include <asm/nmi.h> 31#include <asm/tlbflush.h> | 1#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 2 3#include <linux/errno.h> 4#include <linux/kernel.h> 5#include <linux/mm.h> 6#include <linux/smp.h> 7#include <linux/prctl.h> 8#include <linux/slab.h> --- 15 unchanged lines hidden (view full) --- 24#include <asm/syscalls.h> 25#include <asm/idle.h> 26#include <asm/uaccess.h> 27#include <asm/mwait.h> 28#include <asm/fpu/internal.h> 29#include <asm/debugreg.h> 30#include <asm/nmi.h> 31#include <asm/tlbflush.h> |
32#include <asm/vm86.h> |
|
32 33/* 34 * per-CPU TSS segments. Threads are completely 'soft' on Linux, 35 * no more per-task TSS's. The TSS size is kept cacheline-aligned 36 * so they are allowed to end up in the .data..cacheline_aligned 37 * section. Since TSS's are completely CPU-local, we want them 38 * on exact cacheline boundaries, to eliminate cacheline ping-pong. 39 */ --- 65 unchanged lines hidden (view full) --- 105 * Careful, clear this in the TSS too: 106 */ 107 memset(tss->io_bitmap, 0xff, t->io_bitmap_max); 108 t->io_bitmap_max = 0; 109 put_cpu(); 110 kfree(bp); 111 } 112 | 33 34/* 35 * per-CPU TSS segments. Threads are completely 'soft' on Linux, 36 * no more per-task TSS's. The TSS size is kept cacheline-aligned 37 * so they are allowed to end up in the .data..cacheline_aligned 38 * section. Since TSS's are completely CPU-local, we want them 39 * on exact cacheline boundaries, to eliminate cacheline ping-pong. 40 */ --- 65 unchanged lines hidden (view full) --- 106 * Careful, clear this in the TSS too: 107 */ 108 memset(tss->io_bitmap, 0xff, t->io_bitmap_max); 109 t->io_bitmap_max = 0; 110 put_cpu(); 111 kfree(bp); 112 } 113 |
114 free_vm86(t); 115 |
|
113 fpu__drop(fpu); 114} 115 116void flush_thread(void) 117{ 118 struct task_struct *tsk = current; 119 120 flush_ptrace_hw_breakpoint(tsk); --- 381 unchanged lines hidden --- | 116 fpu__drop(fpu); 117} 118 119void flush_thread(void) 120{ 121 struct task_struct *tsk = current; 122 123 flush_ptrace_hw_breakpoint(tsk); --- 381 unchanged lines hidden --- |