Commit | Line | Data |
---|---|---|
145dea00 | 1 | /* include/asm-sparc/bugs.h: Sparc probes for various bugs. |
1da177e4 | 2 | * |
145dea00 | 3 | * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net) |
1da177e4 LT |
4 | */ |
5 | ||
145dea00 | 6 | #ifdef CONFIG_SPARC32 |
1da177e4 | 7 | #include <asm/cpudata.h> |
145dea00 DM |
8 | #endif |
9 | ||
10 | #ifdef CONFIG_SPARC64 | |
11 | #include <asm/sstate.h> | |
12 | #endif | |
1da177e4 LT |
13 | |
14 | extern unsigned long loops_per_jiffy; | |
15 | ||
145dea00 | 16 | static void __init check_bugs(void) |
1da177e4 | 17 | { |
145dea00 | 18 | #if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP) |
1da177e4 LT |
19 | cpu_data(0).udelay_val = loops_per_jiffy; |
20 | #endif | |
145dea00 DM |
21 | #ifdef CONFIG_SPARC64 |
22 | sstate_running(); | |
23 | #endif | |
1da177e4 | 24 | } |