Do not use the ia64 clocksource on non-ia64 architectures

The HPET clocksource in drivers/char/hpet.c was written as generic code
for ia64, but it is not yet ready to replace the native HPET clocksource
implementations that the i386/x86-64 architectures use.

On x86[-64], trying to register this clocksource results in potentially
multiple hpet-based clocksources being registered, and if the ia64 one
is chosen on x86_64 some users have experienced hangs.

Eventually all three architectures may end up using the same code, but
that is not the case right now.

Cc: John Stultz <johnstul@us.ibm.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Paolo Ornati <ornati@fastwebnet.it>
Cc: Bob Picco <bob.picco@hp.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

+3
+3
drivers/char/hpet.c
··· 909 909 910 910 hpetp->hp_delta = hpet_calibrate(hpetp); 911 911 912 + /* This clocksource driver currently only works on ia64 */ 913 + #ifdef CONFIG_IA64 912 914 if (!hpet_clocksource) { 913 915 hpet_mctr = (void __iomem *)&hpetp->hp_hpet->hpet_mc; 914 916 CLKSRC_FSYS_MMIO_SET(clocksource_hpet.fsys_mmio, hpet_mctr); ··· 920 918 hpetp->hp_clocksource = &clocksource_hpet; 921 919 hpet_clocksource = &clocksource_hpet; 922 920 } 921 + #endif 923 922 924 923 return 0; 925 924 }