Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72fc19ff authored by Ralf Baechle's avatar Ralf Baechle
Browse files

[MIPS] Fix and cleanup the MIPS part of the (ab)use of CLOCK_TICK_RATE.



This is the clock rate of the i8253 PIT.  A MIPS system may not have
a PIT by the symbol is used all over the kernel including some APIs.
So keeping it defined to the number for the PIT is the only sane thing
for now.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent c9294022
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
/*
 * 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_AU1X00_TIMEX_H
#define __ASM_MACH_AU1X00_TIMEX_H

#define CLOCK_TICK_RATE		((HZ * 100000UL) / 2)

#endif /* __ASM_MACH_AU1X00_TIMEX_H */
+0 −13
Original line number Diff line number Diff line
/*
 * 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, 2005 by Ralf Baechle
 */
#ifndef __ASM_MACH_GENERIC_TIMEX_H
#define __ASM_MACH_GENERIC_TIMEX_H

#define CLOCK_TICK_RATE		500000

#endif /* __ASM_MACH_GENERIC_TIMEX_H */
+0 −16
Original line number Diff line number Diff line
/*
 * 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_TIMEX_H
#define __ASM_MACH_JAZZ_TIMEX_H

/*
 * Jazz is still using the R4030 100Hz counter
 */
#define CLOCK_TICK_RATE		100

#endif /* __ASM_MACH_JAZZ_TIMEX_H */
+0 −16
Original line number Diff line number Diff line
/*
 * 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 Daniel Jacobowitz
 */
#ifndef __ASM_MACH_QEMU_TIMEX_H
#define __ASM_MACH_QEMU_TIMEX_H

/*
 * We use a simulated i8254 PIC...
 */
#define CLOCK_TICK_RATE		1193182

#endif /* __ASM_MACH_QEMU_TIMEX_H */

include/asm-mips/mach-rm/timex.h

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
/*
 * 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, 2005 by Ralf Baechle
 */
#ifndef __ASM_MACH_RM200_TIMEX_H
#define __ASM_MACH_RM200_TIMEX_H

#define CLOCK_TICK_RATE		1193182

#endif /* __ASM_MACH_RM200_TIMEX_H */
Loading