David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 1 | /* include/asm-sparc/bugs.h: Sparc probes for various bugs. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | * |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 3 | * Copyright (C) 1996, 2007 David S. Miller (davem@davemloft.net) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | */ |
| 5 | |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 6 | #ifdef CONFIG_SPARC32 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 7 | #include <asm/cpudata.h> |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 8 | #endif |
| 9 | |
| 10 | #ifdef CONFIG_SPARC64 |
| 11 | #include <asm/sstate.h> |
| 12 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
| 14 | extern unsigned long loops_per_jiffy; |
| 15 | |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 16 | static void __init check_bugs(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | { |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 18 | #if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | cpu_data(0).udelay_val = loops_per_jiffy; |
| 20 | #endif |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 21 | #ifdef CONFIG_SPARC64 |
| 22 | sstate_running(); |
| 23 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | } |