Sam Ravnborg | a439fe5 | 2008-07-27 23:00:59 +0200 | [diff] [blame] | 1 | /* include/asm/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 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | extern unsigned long loops_per_jiffy; |
11 | |||||
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 12 | static void __init check_bugs(void) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | { |
David S. Miller | 145dea0 | 2007-11-16 02:57:01 -0800 | [diff] [blame] | 14 | #if defined(CONFIG_SPARC32) && !defined(CONFIG_SMP) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | cpu_data(0).udelay_val = loops_per_jiffy; |
16 | #endif | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | } |