Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18091
b: refs/heads/master
c: b5e2fc1
h: refs/heads/master
i:
  18089: 0915bd7
  18087: 9426bf8
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jan 12, 2006
1 parent 3a405da commit 5d1812d
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 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: ee8c1dd44305cca9d0ded248de991f67b55ec622
refs/heads/master: b5e2fc1c6259e6f26bc4ae4de697da1f8da0edec
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void show_regs(struct pt_regs * regs)
if (trap == 0x300 || trap == 0x600)
printk("DAR: "REG", DSISR: "REG"\n", regs->dar, regs->dsisr);
printk("TASK = %p[%d] '%s' THREAD: %p",
current, current->pid, current->comm, current->thread_info);
current, current->pid, current->comm, task_thread_info(current));

#ifdef CONFIG_SMP
printk(" CPU: %d", smp_processor_id());
Expand Down Expand Up @@ -516,7 +516,7 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
#ifdef CONFIG_PPC32
childregs->gpr[2] = (unsigned long) p;
#else
clear_ti_thread_flag(p->thread_info, TIF_32BIT);
clear_tsk_thread_flag(p, TIF_32BIT);
#endif
p->thread.regs = NULL; /* no user register state */
} else {
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/powerpc/kernel/ptrace-common.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ static inline void set_single_step(struct task_struct *task)
struct pt_regs *regs = task->thread.regs;
if (regs != NULL)
regs->msr |= MSR_SE;
set_ti_thread_flag(task->thread_info, TIF_SINGLESTEP);
set_tsk_thread_flag(task, TIF_SINGLESTEP);
}

static inline void clear_single_step(struct task_struct *task)
{
struct pt_regs *regs = task->thread.regs;
if (regs != NULL)
regs->msr &= ~MSR_SE;
clear_ti_thread_flag(task->thread_info, TIF_SINGLESTEP);
clear_tsk_thread_flag(task, TIF_SINGLESTEP);
}

#ifdef CONFIG_ALTIVEC
Expand Down
6 changes: 3 additions & 3 deletions trunk/arch/powerpc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,8 @@ static void __init smp_create_idle(unsigned int cpu)
#ifdef CONFIG_PPC64
paca[cpu].__current = p;
#endif
current_set[cpu] = p->thread_info;
p->thread_info->cpu = cpu;
current_set[cpu] = task_thread_info(p);
task_thread_info(p)->cpu = cpu;
}

void __init smp_prepare_cpus(unsigned int max_cpus)
Expand Down Expand Up @@ -375,7 +375,7 @@ void __devinit smp_prepare_boot_cpu(void)
#ifdef CONFIG_PPC64
paca[boot_cpuid].__current = current;
#endif
current_set[boot_cpuid] = current->thread_info;
current_set[boot_cpuid] = task_thread_info(current);
}

#ifdef CONFIG_HOTPLUG_CPU
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/cell/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static inline int __devinit smp_startup_cpu(unsigned int lcpu)
pcpu = get_hard_smp_processor_id(lcpu);

/* Fixup atomic count: it exited inside IRQ handler. */
paca[lcpu].__current->thread_info->preempt_count = 0;
task_thread_info(paca[lcpu].__current)->preempt_count = 0;

/*
* If the RTAS start-cpu token does not exist then presume the
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/platforms/pseries/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ static inline int __devinit smp_startup_cpu(unsigned int lcpu)
pcpu = get_hard_smp_processor_id(lcpu);

/* Fixup atomic count: it exited inside IRQ handler. */
paca[lcpu].__current->thread_info->preempt_count = 0;
task_thread_info(paca[lcpu].__current)->preempt_count = 0;

/*
* If the RTAS start-cpu token does not exist then presume the
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/ppc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void show_regs(struct pt_regs * regs)
if (trap == 0x300 || trap == 0x600)
printk("DAR: %08lX, DSISR: %08lX\n", regs->dar, regs->dsisr);
printk("TASK = %p[%d] '%s' THREAD: %p\n",
current, current->pid, current->comm, current->thread_info);
current, current->pid, current->comm, task_thread_info(current));
printk("Last syscall: %ld ", current->thread.last_syscall);

#ifdef CONFIG_SMP
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/ppc/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ void __init smp_prepare_cpus(unsigned int max_cpus)
p = fork_idle(cpu);
if (IS_ERR(p))
panic("failed fork for CPU %u: %li", cpu, PTR_ERR(p));
p->thread_info->cpu = cpu;
task_thread_info(p)->cpu = cpu;
idle_tasks[cpu] = p;
}
}
Expand Down Expand Up @@ -369,7 +369,7 @@ int __cpu_up(unsigned int cpu)
char buf[32];
int c;

secondary_ti = idle_tasks[cpu]->thread_info;
secondary_ti = task_thread_info(idle_tasks[cpu]);
mb();

/*
Expand Down

0 comments on commit 5d1812d

Please sign in to comment.