Skip to contentSkip to conversation

hz_to_std(): parisc, etc.

PATCH Jim Freeman 1 participant 1 message Feb 2, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

asm-parisc/param.h is missing the hz_to_std() macro that the other asm-*/param.h have.

For the other missing asm-arm/arch-*, something like the following could catch laggards? Or the test could be used in linux/param.h, though I expect Linus wouldn't like crufting the toplevel .h for a mips-ism (or is hz_to_std() a needed non-mips-centric general mechanism)?

include/asm-arm/param.h +7 -2
@@ -16,9 +16,14 @@
 #ifndef HZ
 #define HZ 100
 #endif
-#if defined(__KERNEL__) && (HZ == 100)
+#ifdef __KERNEL__
+#if (HZ == 100)
 #define hz_to_std(a) (a)
-#endif
+#endif /* (HZ == 100) */
+#if !defined(hz_to_std)
+#error hz_to_std not defined	/* see asm-arm/arch-shark/param.h for details */
+#endif /* !defined(hz_to_std) */
+#endif /* def __KERNEL__ */
 
 #ifndef NGROUPS
 #define NGROUPS         32
include/asm-arm/arch-shark/param.h +1 -1
@@ -15,7 +15,7 @@
 
    is what has to be done, it just has overflow problems with the
    intermediate result of the multiply after a bit more than 7 days.
-   See include/asm-mips/param.h for a optized sample implementation
+   See include/asm-mips/param.h for an optimized sample implementation
    used on DECstations.
  */
 #error Provide a definiton for hz_to_std