]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/mips/pmc-sierra/yosemite/smp.c
[PATCH] mips: task_thread_info()
[linux-2.6-omap-h63xx.git] / arch / mips / pmc-sierra / yosemite / smp.c
index 0527170d6adb46fee7165b22b925c3d0f72c61df..f17f575f58f0a17ddfb700549110c07feb4afad1 100644 (file)
@@ -93,8 +93,8 @@ void __init prom_prepare_cpus(unsigned int max_cpus)
  */
 void prom_boot_secondary(int cpu, struct task_struct *idle)
 {
-       unsigned long gp = (unsigned long) idle->thread_info;
-       unsigned long sp = gp + THREAD_SIZE - 32;
+       unsigned long gp = (unsigned long) task_thread_info(idle);
+       unsigned long sp = __KSTK_TOP(idle);
 
        secondary_sp = sp;
        secondary_gp = gp;