Patchwork SPARC: Simplify param.h by simply including <asm-generic/param.h>

login
register
mail settings
Submitter Robert P. J. Day
Date Dec. 30, 2009, 8:58 a.m.
Message ID <alpine.LFD.2.00.0912300356540.13010@localhost>
Download mbox | patch
Permalink /patch/41903/
State Accepted
Delegated to: David Miller
Headers show

Comments

Robert P. J. Day - Dec. 30, 2009, 8:58 a.m.
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>

---

  override the only difference, EXEC_PAGESIZE, then include the
generic version.



rday
--

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

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sam Ravnborg - Dec. 30, 2009, 1:14 p.m.
On Wed, Dec 30, 2009 at 03:58:39AM -0500, Robert P. J. Day wrote:
> 
> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
> 
> ---
> 
>   override the only difference, EXEC_PAGESIZE, then include the
> generic version.

Looks good.

Reviewed-by: Sam Ravnborg <sam@ravnborg.org>

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Jan. 12, 2010, 9:59 a.m.
From: Sam Ravnborg <sam@ravnborg.org>
Date: Wed, 30 Dec 2009 14:14:37 +0100

> On Wed, Dec 30, 2009 at 03:58:39AM -0500, Robert P. J. Day wrote:
>> 
>> Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
>> 
>> ---
>> 
>>   override the only difference, EXEC_PAGESIZE, then include the
>> generic version.
> 
> Looks good.
> 
> Reviewed-by: Sam Ravnborg <sam@ravnborg.org>

Applied, thanks everyone.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/arch/sparc/include/asm/param.h b/arch/sparc/include/asm/param.h
index 9836d9a..0bc356b 100644
--- a/arch/sparc/include/asm/param.h
+++ b/arch/sparc/include/asm/param.h
@@ -1,22 +1,7 @@ 
 #ifndef _ASMSPARC_PARAM_H
 #define _ASMSPARC_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)
-#endif
-
-#ifndef HZ
-#define HZ 100
-#endif
-
 #define EXEC_PAGESIZE	8192    /* Thanks for sun4's we carry baggage... */
+#include <asm-generic/param.h>

-#ifndef NOGROUP
-#define NOGROUP		(-1)
-#endif
-
-#define MAXHOSTNAMELEN	64	/* max length of hostname */
-
-#endif
+#endif /* _ASMSPARC_PARAM_H */