Skip to contentSkip to conversation

m68knommu: rework definition of HZ

PATCH New Greg Ungerer 1 participant 1 message May 1, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68knommu: rework definition of HZ

Rework the HZ definition to be more consistent with other architectures. Non-kernel includers will see a constant HZ setting of 100.

---

include/asm-m68knommu/param.h +5 -2
diff -Naurp linux-2.6.25/include/asm-m68knommu/param.h linux-2.6.25-uc0/include/asm-m68knommu/param.h
@@ -1,13 +1,16 @@
 #ifndef _M68KNOMMU_PARAM_H
 #define _M68KNOMMU_PARAM_H
 
-#define HZ CONFIG_HZ
-
 #ifdef __KERNEL__
+#define HZ CONFIG_HZ
 #define	USER_HZ		HZ
 #define	CLOCKS_PER_SEC	(USER_HZ)
 #endif
 
+#ifndef HZ
+#define HZ	100
+#endif
+
 #define EXEC_PAGESIZE	4096
 
 #ifndef NOGROUP