]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/ia64/sn/kernel/sn2/sn2_smp.c
[IA64] Prevent sn2 ptc code from executing on all ia64 subarches
[net-next-2.6.git] / arch / ia64 / sn / kernel / sn2 / sn2_smp.c
index 49b530c39a423d99ff59cf55d2ccdac4650705c6..5d54f5f4e92672b3b1b8f33b8f880154bdd83a43 100644 (file)
@@ -492,6 +492,9 @@ static struct proc_dir_entry *proc_sn2_ptc;
 
 static int __init sn2_ptc_init(void)
 {
+       if (!ia64_platform_is("sn2"))
+               return -ENOSYS;
+
        if (!(proc_sn2_ptc = create_proc_entry(PTC_BASENAME, 0444, NULL))) {
                printk(KERN_ERR "unable to create %s proc entry", PTC_BASENAME);
                return -EINVAL;