Skip to contentSkip to conversation

M68K: Simplify param.h by using <asm-generic/param.h>

PATCH In review Robert P. J. Day 2 participants 2 messages Dec 31, 2009 – Mar 7, 2010 m68k architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 M68K: Simplify param.h by using <asm-generic/param.h>

---

arch/m68k/include/asm/param.h +1 -15
index 85c41b7..36265cc 100644
@@ -1,26 +1,12 @@
 #ifndef _M68K_PARAM_H
 #define _M68K_PARAM_H
 
-#ifdef __KERNEL__
-# 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() */
-#endif
-
-#ifndef HZ
-#define HZ 100
-#endif
-
 #ifdef __uClinux__
 #define EXEC_PAGESIZE	4096
 #else
 #define EXEC_PAGESIZE	8192
 #endif
 
-#ifndef NOGROUP
-#define NOGROUP		(-1)
-#endif
-
-#define MAXHOSTNAMELEN	64	/* max length of hostname */
+#include <asm-generic/param.h>
 
 #endif /* _M68K_PARAM_H */

rday
--

========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA

Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday

========================================================================

#1 lore raw
Quoted 1 line · Robert P. J. Day

Thx, applied.

diff --git a/arch/m68k/include/asm/param.h b/arch/m68k/include/asm/param.h

Quoted 21 lines

index 85c41b7..36265cc 100644

arch/m68k/include/asm/param.h +0 -10
@@ -1,26 +1,12 @@
  #ifndef _M68K_PARAM_H
  #define _M68K_PARAM_H
 
-#ifdef __KERNEL__
-# 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() */
-#endif
-
-#ifndef HZ
-#define HZ 100
-#endif
-
  #ifdef __uClinux__
  #define EXEC_PAGESIZE  4096
  #else
  #define EXEC_PAGESIZE  8192

arch/m68k/include/asm/param.h line 12

Quoted 10 lines
arch/m68k/include/asm/param.h +1 -5
  #endif
 
-#ifndef NOGROUP
-#define NOGROUP                (-1)
-#endif
-
-#define MAXHOSTNAMELEN 64      /* max length of hostname */
+#include <asm-generic/param.h>
 
  #endif /* _M68K_PARAM_H */

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds