[MIPS] Make timer interrupt frequency configurable from kconfig.

Make HZ configurable.  DECSTATION can select 128/256/1024 HZ, JAZZ can
only select 100 HZ, others can select 100/128/250/256/1000/1024 HZ if
not explicitly specified).  Also remove all mach-xxx/param.h files and
update all defconfigs according to current HZ value.

Signed-off-by: Atsushi Nemoto <[email protected]>
Signed-off-by: Ralf Baechle <[email protected]>
This commit is contained in:
Atsushi Nemoto 2006-06-20 00:19:13 +09:00 • committed by Ralf Baechle
commit 1723b4a34a
56 changed files with 511 additions and 75 deletions

View file

@ -1,18 +0,0 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 by Ralf Baechle
*/
#ifndef __ASM_MACH_DEC_PARAM_H
#define __ASM_MACH_DEC_PARAM_H
/*
* log2(HZ), change this here if you want another HZ value. This is also
* used in dec_time_init. Minimum is 1, Maximum is 15.
*/
#define LOG_2_HZ 7
#define HZ (1 << LOG_2_HZ)
#endif /* __ASM_MACH_DEC_PARAM_H */

View file

@ -1,13 +0,0 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 by Ralf Baechle
*/
#ifndef __ASM_MACH_GENERIC_PARAM_H
#define __ASM_MACH_GENERIC_PARAM_H
#define HZ 1000 /* Internal kernel timer frequency */
#endif /* __ASM_MACH_GENERIC_PARAM_H */

View file

@ -1,16 +0,0 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 by Ralf Baechle
*/
#ifndef __ASM_MACH_JAZZ_PARAM_H
#define __ASM_MACH_JAZZ_PARAM_H
/*
* Jazz is currently using the internal 100Hz timer of the R4030
*/
#define HZ 100 /* Internal kernel timer frequency */
#endif /* __ASM_MACH_JAZZ_PARAM_H */

View file

@ -1,13 +0,0 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2003 by Ralf Baechle
*/
#ifndef __ASM_MACH_MIPS_PARAM_H
#define __ASM_MACH_MIPS_PARAM_H
#define HZ 100 /* Internal kernel timer frequency */
#endif /* __ASM_MACH_MIPS_PARAM_H */

View file

@ -1,13 +0,0 @@
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 2005 by Ralf Baechle
*/
#ifndef __ASM_MACH_QEMU_PARAM_H
#define __ASM_MACH_QEMU_PARAM_H
#define HZ 100 /* Internal kernel timer frequency */
#endif /* __ASM_MACH_QEMU_PARAM_H */

View file

@ -11,7 +11,7 @@
#ifdef __KERNEL__
# include <param.h> /* 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() */
#endif