patch-2.3.99-pre7 linux/arch/sparc/kernel/process.c
Next file: linux/arch/sparc/kernel/setup.c
Previous file: linux/arch/sparc/kernel/irq.c
Back to the patch index
Back to the overall index
- Lines: 99
- Date:
Mon May 8 22:00:01 2000
- Orig file:
v2.3.99-pre6/linux/arch/sparc/kernel/process.c
- Orig date:
Thu Mar 2 14:36:22 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/arch/sparc/kernel/process.c linux/arch/sparc/kernel/process.c
@@ -45,7 +45,7 @@
struct task_struct *last_task_used_math = NULL;
struct task_struct *current_set[NR_CPUS] = {&init_task, };
-#ifndef __SMP__
+#ifndef CONFIG_SMP
#define SUN4C_FAULT_HIGH 100
@@ -229,7 +229,7 @@
__show_backtrace(fp);
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
void smp_show_backtrace_all_cpus(void)
{
xc0((smpfunc_t) show_backtrace);
@@ -320,7 +320,7 @@
*/
void exit_thread(void)
{
-#ifndef __SMP__
+#ifndef CONFIG_SMP
if(last_task_used_math == current) {
#else
if(current->flags & PF_USEDFPU) {
@@ -329,7 +329,7 @@
put_psr(get_psr() | PSR_EF);
fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr,
¤t->thread.fpqueue[0], ¤t->thread.fpqdepth);
-#ifndef __SMP__
+#ifndef CONFIG_SMP
last_task_used_math = NULL;
#else
current->flags &= ~PF_USEDFPU;
@@ -343,7 +343,7 @@
/* No new signal delivery by default */
current->thread.new_signal = 0;
-#ifndef __SMP__
+#ifndef CONFIG_SMP
if(last_task_used_math == current) {
#else
if(current->flags & PF_USEDFPU) {
@@ -352,7 +352,7 @@
put_psr(get_psr() | PSR_EF);
fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr,
¤t->thread.fpqueue[0], ¤t->thread.fpqdepth);
-#ifndef __SMP__
+#ifndef CONFIG_SMP
last_task_used_math = NULL;
#else
current->flags &= ~PF_USEDFPU;
@@ -453,7 +453,7 @@
* allocate the task_struct and kernel stack in
* do_fork().
*/
-#ifdef __SMP__
+#ifdef CONFIG_SMP
extern void ret_from_smpfork(void);
#else
extern void ret_from_syscall(void);
@@ -466,7 +466,7 @@
struct reg_window *new_stack;
unsigned long stack_offset;
-#ifndef __SMP__
+#ifndef CONFIG_SMP
if(last_task_used_math == current) {
#else
if(current->flags & PF_USEDFPU) {
@@ -474,7 +474,7 @@
put_psr(get_psr() | PSR_EF);
fpsave(&p->thread.float_regs[0], &p->thread.fsr,
&p->thread.fpqueue[0], &p->thread.fpqdepth);
-#ifdef __SMP__
+#ifdef CONFIG_SMP
current->flags &= ~PF_USEDFPU;
#endif
}
@@ -490,7 +490,7 @@
copy_regwin(new_stack, (((struct reg_window *) regs) - 1));
p->thread.ksp = (unsigned long) new_stack;
-#ifdef __SMP__
+#ifdef CONFIG_SMP
p->thread.kpc = (((unsigned long) ret_from_smpfork) - 0x8);
p->thread.kpsr = current->thread.fork_kpsr | PSR_PIL;
#else
@@ -604,7 +604,7 @@
fpregs->pr_q_entrysize = 8;
return 1;
}
-#ifdef __SMP__
+#ifdef CONFIG_SMP
if (current->flags & PF_USEDFPU) {
put_psr(get_psr() | PSR_EF);
fpsave(¤t->thread.float_regs[0], ¤t->thread.fsr,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)