blob: 2dfc07bc8e5472ec9b319dd137a8c7a69535338e [file] [log] [blame]
David S. Miller145dea02007-11-16 02:57:01 -08001/* include/asm-sparc/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
10#ifdef CONFIG_SPARC64
11#include <asm/sstate.h>
12#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
14extern unsigned long loops_per_jiffy;
15
David S. Miller145dea02007-11-16 02:57:01 -080016static void __init check_bugs(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -070017{
David S. Miller145dea02007-11-16 02:57:01 -080018#if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 cpu_data(0).udelay_val = loops_per_jiffy;
20#endif
David S. Miller145dea02007-11-16 02:57:01 -080021#ifdef CONFIG_SPARC64
22 sstate_running();
23#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070024}