]> err.no Git - linux-2.6/commitdiff
[IA64] kexec: declare ia64_mca_pal_base in mca.h rather than kexec.h
authorSimon Horman <horms@verge.net.au>
Wed, 14 Feb 2007 07:17:47 +0000 (16:17 +0900)
committerTony Luck <tony.luck@intel.com>
Thu, 8 Mar 2007 18:18:24 +0000 (10:18 -0800)
* Kexec adds some code to arch/ia64/kernel/smp.c which needs ia64_mca_pal_base,
  so the kexec patch (actually the kdump patch) declares this
  per-cpu variable in include/asm-ia64/kexec.h.

* ia64_mca_pal_base is defined in arch/ia64/kernel/mca.c, so it
  seems to me that it would make a lot more sense to declare it in
  include/asm-ia64/mca.h.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Tony Luck <tony.luck@intel.com>
include/asm-ia64/kexec.h
include/asm-ia64/mca.h

index f2ad469a6ddfac76c6592b535a489eb2cb27e85f..41299ddfee30e0c742102420725e3645bd711999 100644 (file)
@@ -22,7 +22,6 @@
         } while(0)
 
 extern struct kimage *ia64_kimage;
-DECLARE_PER_CPU(u64, ia64_mca_pal_base);
 extern const unsigned int relocate_new_kernel_size;
 extern void relocate_new_kernel(unsigned long, unsigned long,
                struct ia64_boot_param *, unsigned long);
index ee97f7c2d462e350b7554454861ef35bd9d73e93..41098f459684c41f82cc26c6812f3b21deacb400 100644 (file)
@@ -156,6 +156,8 @@ struct ia64_mca_notify_die {
        int *monarch_cpu;
 };
 
+DECLARE_PER_CPU(u64, ia64_mca_pal_base);
+
 #else  /* __ASSEMBLY__ */
 
 #define IA64_MCA_CORRECTED     0x0     /* Error has been corrected by OS_MCA */