Commit 43174c96 authored by Greg Ungerer's avatar Greg Ungerer Committed by Linus Torvalds

[PATCH] clean up HZ definition

Clean up the definition of HZ on m68knommu systems.
There is really only a couple of cases to handle, most
boards use the traditional 100Hz still. Only special
case out those that don't. The current code is just
spaghetti.
Signed-off-by: default avatarGreg Ungerer <gerg@snapgear.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c1910a36
......@@ -3,40 +3,13 @@
#include <linux/config.h>
#ifndef HZ
#ifdef CONFIG_COLDFIRE
#if defined(CONFIG_CLEOPATRA)
#define HZ 1000
#else
#define HZ 100
#endif
#endif
#ifdef CONFIG_M68EN302
#define HZ 100
#endif
#ifdef CONFIG_M68328
#define HZ 100
#endif
#ifdef CONFIG_M68EZ328
#define HZ 100
#endif
#ifdef CONFIG_UCSIMM
#define HZ 100
#endif
#ifdef CONFIG_M68VZ328
#define HZ 100
#endif
#ifdef CONFIG_SHGLCORE
#define HZ 50
#endif
#ifdef CONFIG_M68360
#ifndef HZ
#define HZ 100
#endif
#endif
#ifdef __KERNEL__
#define USER_HZ HZ
#define CLOCKS_PER_SEC (USER_HZ)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment