2007-11-16 13:57:01 +03:00
|
|
|
/* include/asm-sparc/bugs.h: Sparc probes for various bugs.
|
2005-04-17 02:20:36 +04:00
|
|
|
*
|
2007-11-16 13:57:01 +03:00
|
|
|
* Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net)
|
2005-04-17 02:20:36 +04:00
|
|
|
*/
|
|
|
|
|
2007-11-16 13:57:01 +03:00
|
|
|
#ifdef CONFIG_SPARC32
|
2005-04-17 02:20:36 +04:00
|
|
|
#include <asm/cpudata.h>
|
2007-11-16 13:57:01 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_SPARC64
|
|
|
|
#include <asm/sstate.h>
|
|
|
|
#endif
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
extern unsigned long loops_per_jiffy;
|
|
|
|
|
2007-11-16 13:57:01 +03:00
|
|
|
static void __init check_bugs(void)
|
2005-04-17 02:20:36 +04:00
|
|
|
{
|
2007-11-16 13:57:01 +03:00
|
|
|
#if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP)
|
2005-04-17 02:20:36 +04:00
|
|
|
cpu_data(0).udelay_val = loops_per_jiffy;
|
|
|
|
#endif
|
2007-11-16 13:57:01 +03:00
|
|
|
#ifdef CONFIG_SPARC64
|
|
|
|
sstate_running();
|
|
|
|
#endif
|
2005-04-17 02:20:36 +04:00
|
|
|
}
|