Skip to content

Commit

Permalink
[PARISC] Use CONFIG_HZ to determine interval timer rate (aka clock ti…
Browse files Browse the repository at this point in the history
…cks)

This isn't likely to be causing problems for other bits of
kernel code. I can't find any other user of CONFIG_HZ outside
of arch specific code.

Signed-off-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
  • Loading branch information
Grant Grundler authored and Matthew Wilcox committed Oct 4, 2006
1 parent 342a049 commit 9cf8f37
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions include/asm-parisc/param.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
#define _ASMPARISC_PARAM_H

#ifdef __KERNEL__
# ifdef CONFIG_PA20
# define HZ 1000 /* Faster machines */
# else
# define HZ 100 /* Internal kernel timer frequency */
# endif
# define USER_HZ 100 /* .. some user interfaces are in "ticks" */
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#define HZ CONFIG_HZ
#define USER_HZ 100 /* some user API use "ticks" */
#define CLOCKS_PER_SEC (USER_HZ) /* like times() */
#endif

#ifndef HZ
Expand Down

0 comments on commit 9cf8f37

Please sign in to comment.