Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18057
b: refs/heads/master
c: e4f17c4
h: refs/heads/master
i:
  18055: 439bff9
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 9d07678 commit dc4d69f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e52f4ca2a7cfea3495cabae23d48f1538f09ccf2
refs/heads/master: e4f17c436f8e4241995c2531372be8dd7ea6ff75
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/i387.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ int save_i387(struct _fpstate __user *buf)
if (!used_math())
return 0;
clear_used_math(); /* trigger finit */
if (tsk->thread_info->status & TS_USEDFPU) {
if (task_thread_info(tsk)->status & TS_USEDFPU) {
err = save_i387_checking((struct i387_fxsave_struct __user *)buf);
if (err) return err;
stts();
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/i8259.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ static void end_8259A_irq (unsigned int irq)
{
if (irq > 256) {
char var;
printk("return %p stack %p ti %p\n", __builtin_return_address(0), &var, current->thread_info);
printk("return %p stack %p ti %p\n", __builtin_return_address(0), &var, task_thread_info(current));

BUG();
}
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long rsp,
p->thread.rsp0 = (unsigned long) (childregs+1);
p->thread.userrsp = me->thread.userrsp;

set_ti_thread_flag(p->thread_info, TIF_FORK);
set_tsk_thread_flag(p, TIF_FORK);

p->thread.fs = me->thread.fs;
p->thread.gs = me->thread.gs;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86_64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static int __cpuinit do_boot_cpu(int cpu, int apicid)
init_rsp = c_idle.idle->thread.rsp;
per_cpu(init_tss,cpu).rsp0 = init_rsp;
initial_code = start_secondary;
clear_ti_thread_flag(c_idle.idle->thread_info, TIF_FORK);
clear_tsk_thread_flag(c_idle.idle, TIF_FORK);

printk(KERN_INFO "Booting processor %d/%d APIC 0x%x\n", cpu,
cpus_weight(cpu_present_map),
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86_64/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ void show_registers(struct pt_regs *regs)
printk("CPU %d ", cpu);
__show_regs(regs);
printk("Process %s (pid: %d, threadinfo %p, task %p)\n",
cur->comm, cur->pid, cur->thread_info, cur);
cur->comm, cur->pid, task_thread_info(cur), cur);

/*
* When in-kernel, we also print out the stack and code at the
Expand Down Expand Up @@ -912,7 +912,7 @@ asmlinkage void math_state_restore(void)
if (!used_math())
init_fpu(me);
restore_fpu_checking(&me->thread.i387.fxsave);
me->thread_info->status |= TS_USEDFPU;
task_thread_info(me)->status |= TS_USEDFPU;
}

void __init trap_init(void)
Expand Down
10 changes: 5 additions & 5 deletions trunk/include/asm-x86_64/i387.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ extern int save_i387(struct _fpstate __user *buf);
*/

#define unlazy_fpu(tsk) do { \
if ((tsk)->thread_info->status & TS_USEDFPU) \
if (task_thread_info(tsk)->status & TS_USEDFPU) \
save_init_fpu(tsk); \
} while (0)

Expand All @@ -46,9 +46,9 @@ static inline void tolerant_fwait(void)
}

#define clear_fpu(tsk) do { \
if ((tsk)->thread_info->status & TS_USEDFPU) { \
if (task_thread_info(tsk)->status & TS_USEDFPU) { \
tolerant_fwait(); \
(tsk)->thread_info->status &= ~TS_USEDFPU; \
task_thread_info(tsk)->status &= ~TS_USEDFPU; \
stts(); \
} \
} while (0)
Expand Down Expand Up @@ -170,10 +170,10 @@ static inline void kernel_fpu_end(void)
preempt_enable();
}

static inline void save_init_fpu( struct task_struct *tsk )
static inline void save_init_fpu(struct task_struct *tsk)
{
__fxsave_clear(tsk);
tsk->thread_info->status &= ~TS_USEDFPU;
task_thread_info(tsk)->status &= ~TS_USEDFPU;
stts();
}

Expand Down

0 comments on commit dc4d69f

Please sign in to comment.