blob: 61d86bbbe2b2f5270043d9a3ee72330119f65eb0 [file] [log] [blame]
Sam Ravnborga439fe52008-07-27 23:00:59 +02001/* include/asm/bugs.h: Sparc probes for various bugs.
Linus Torvalds1da177e2005-04-16 15:20:36 -07002 *
David S. Miller145dea02007-11-16 02:57:01 -08003 * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 */
5
David S. Miller145dea02007-11-16 02:57:01 -08006#ifdef CONFIG_SPARC32
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#include <asm/cpudata.h>
David S. Miller145dea02007-11-16 02:57:01 -08008#endif
9
Linus Torvalds1da177e2005-04-16 15:20:36 -070010extern unsigned long loops_per_jiffy;
11
David S. Miller145dea02007-11-16 02:57:01 -080012static void __init check_bugs(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070013{
David S. Miller145dea02007-11-16 02:57:01 -080014#if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 cpu_data(0).udelay_val = loops_per_jiffy;
16#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070017}