[ARM] Move HZ definition into Kconfig
Move the HZ definition into Kconfig, and set appropriate defaults for platforms. Remove mostly empty asm/arch/param.h include file. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
Родитель
ec1248e70e
Коммит
f80658137f
|
@ -434,6 +434,13 @@ config NO_IDLE_HZ
|
|||
Currently at least OMAP, PXA2xx and SA11x0 platforms are known
|
||||
to have accurate timekeeping with dynamic tick.
|
||||
|
||||
config HZ
|
||||
int
|
||||
default 128 if ARCH_L7200
|
||||
default 200 if ARCH_EBSA110 || ARCH_S3C2410
|
||||
default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER_HZ != 0
|
||||
default 100
|
||||
|
||||
config AEABI
|
||||
bool "Use the ARM EABI to compile the kernel"
|
||||
help
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-aaec2000/param.h
|
||||
*
|
||||
* Copyright (c) 2005 Nicolas Bellido Y Ortega
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_PARAM_H
|
||||
#define __ASM_ARCH_PARAM_H
|
||||
|
||||
#endif /* __ASM_ARCH_PARAM_H */
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
/*
|
||||
* include/asm-arm/arch-at91rm9200/param.h
|
||||
*
|
||||
* Copyright (C) 2003 SAN People
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_PARAM_H
|
||||
#define __ASM_ARCH_PARAM_H
|
||||
|
||||
/*
|
||||
* We use default params
|
||||
*/
|
||||
|
||||
#endif
|
|
@ -1,5 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-cl7500/param.h
|
||||
*
|
||||
* Copyright (C) 1999 Nexus Electronics Ltd
|
||||
*/
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-clps711x/param.h
|
||||
*
|
||||
* Copyright (C) 2000 Deep Blue Solutions Ltd.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
|
@ -1,4 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-ebsa110/param.h
|
||||
*/
|
||||
#define HZ 200
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-ebsa285/param.h
|
||||
*/
|
|
@ -1,10 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-h720x/param.h
|
||||
*
|
||||
* Copyright (C) 2000 Jungjun Kim
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_PARAM_H
|
||||
#define __ASM_ARCH_PARAM_H
|
||||
|
||||
#endif
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-imx/param.h
|
||||
*
|
||||
* Copyright (C) 1999 ARM Limited
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-integrator/param.h
|
||||
*
|
||||
* Copyright (C) 1999 ARM Limited
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-iop3xx/param.h
|
||||
*/
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-ixp2000/param.h
|
||||
*/
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-ixp4xx/param.h
|
||||
*/
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-l7200/param.h
|
||||
*
|
||||
* Copyright (C) 2000 Rob Scott (rscott@mtrob.fdns.net)
|
||||
* Steve Hill (sjhill@cotw.com)
|
||||
*
|
||||
* This file contains the hardware definitions for the
|
||||
* LinkUp Systems L7200 SOC development board.
|
||||
*
|
||||
* Changelog:
|
||||
* 04-21-2000 RS Created L7200 version
|
||||
* 04-25-2000 SJH Cleaned up file
|
||||
* 05-03-2000 SJH Change comments and rate
|
||||
*/
|
||||
|
||||
/*
|
||||
* See 'time.h' for how the RTC HZ rate is set
|
||||
*/
|
||||
#define HZ 128
|
|
@ -1,9 +0,0 @@
|
|||
/* include/asm-arm/arch-lh7a40x/param.h
|
||||
*
|
||||
* Copyright (C) 2004 Coastal Environmental Systems
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* version 2 as published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-omap/param.h
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_OMAP_32K_TIMER_HZ
|
||||
#define HZ CONFIG_OMAP_32K_TIMER_HZ
|
||||
#endif
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-pxa/param.h
|
||||
*/
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-realview/param.h
|
||||
*
|
||||
* Copyright (C) 2002 ARM Limited
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-rpc/param.h
|
||||
*/
|
|
@ -1,27 +0,0 @@
|
|||
/* linux/include/asm-arm/arch-s3c2410/param.h
|
||||
*
|
||||
* (c) 2003 Simtec Electronics
|
||||
* Ben Dooks <ben@simtec.co.uk>
|
||||
*
|
||||
* S3C2410 - Machine parameters
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* Changelog:
|
||||
* 02-Sep-2003 BJD Created file
|
||||
* 12-Mar-2004 BJD Added include protection
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_PARAM_H
|
||||
#define __ASM_ARCH_PARAM_H
|
||||
|
||||
/* we cannot get our timer down to 100Hz with the setup as is, but we can
|
||||
* manage 200 clock ticks per second... if this is a problem, we can always
|
||||
* add a software pre-scaler to the evil timer systems.
|
||||
*/
|
||||
|
||||
#define HZ 200
|
||||
|
||||
#endif /* __ASM_ARCH_PARAM_H */
|
|
@ -1,3 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-sa1100/param.h
|
||||
*/
|
|
@ -1,5 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-shark/param.h
|
||||
*
|
||||
* by Alexander Schulz
|
||||
*/
|
|
@ -1,19 +0,0 @@
|
|||
/*
|
||||
* linux/include/asm-arm/arch-versatile/param.h
|
||||
*
|
||||
* Copyright (C) 2002 ARM Limited
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
|
@ -11,12 +11,7 @@
|
|||
#define __ASM_PARAM_H
|
||||
|
||||
#ifdef __KERNEL__
|
||||
# include <asm/arch/param.h> /* for kernel version of HZ */
|
||||
|
||||
# ifndef HZ
|
||||
# define HZ 100 /* Internal kernel timer frequency */
|
||||
# endif
|
||||
|
||||
# define HZ CONFIG_HZ /* Internal kernel timer frequency */
|
||||
# define USER_HZ 100 /* User interfaces are in "ticks" */
|
||||
# define CLOCKS_PER_SEC (USER_HZ) /* like times() */
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче