Skip to contentSkip to conversation

MN10300: Define HZ as a config option

PATCH New David Howells 1 participant 2 messages Feb 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 MN10300: Define HZ as a config option

Define HZ as a config option.

---

 arch/mn10300/Kconfig        |    4 ++++
 include/asm-mn10300/param.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
arch/mn10300/Kconfig +4 -0
index eedc3a5..6a6409a 100644
@@ -63,6 +63,10 @@ config GENERIC_HARDIRQS
 config HOTPLUG_CPU
 	def_bool n
 
+config HZ
+	int
+	default 1000
+
 mainmenu "Matsushita MN10300/AM33 Kernel Configuration"
 
 source "init/Kconfig"
include/asm-mn10300/param.h +1 -1
index 54b883e..789b1df 100644
@@ -12,7 +12,7 @@
 #define _ASM_PARAM_H
 
 #ifdef __KERNEL__
-#define HZ		1000		/* Internal kernel timer frequency */
+#define HZ		CONFIG_HZ	/* Internal kernel timer frequency */
 #define USER_HZ		100		/* .. some user interfaces are in
 					 * "ticks" */
 #define CLOCKS_PER_SEC	(USER_HZ)	/* like times() */
#1 lore raw

PATCH 2/2 MN10300: Define SO_MARK

Define SO_MARK for MN10300.

---

 include/asm-mn10300/socket.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
include/asm-mn10300/socket.h +2 -0
index 99ca648..80af9c4 100644
@@ -52,4 +52,6 @@
 #define SO_TIMESTAMPNS		35
 #define SCM_TIMESTAMPNS		SO_TIMESTAMPNS
 
+#define SO_MARK			36
+
 #endif /* _ASM_SOCKET_H */