Module Name: src
Committed By: martin
Date: Wed Dec 31 15:25:08 UTC 2014
Modified Files:
src/sys/arch/evbmips/ingenic: clock.c
Log Message:
Move struct clockframe cf as extern declaration into ingenic_clockintr(),
to avoid a duplicate common.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbmips/ingenic/clock.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbmips/ingenic/clock.c
diff -u src/sys/arch/evbmips/ingenic/clock.c:1.4 src/sys/arch/evbmips/ingenic/clock.c:1.5
--- src/sys/arch/evbmips/ingenic/clock.c:1.4 Fri Dec 26 17:43:32 2014
+++ src/sys/arch/evbmips/ingenic/clock.c Wed Dec 31 15:25:08 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.4 2014/12/26 17:43:32 macallan Exp $ */
+/* $NetBSD: clock.c,v 1.5 2014/12/31 15:25:08 martin Exp $ */
/*-
* Copyright (c) 2014 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.4 2014/12/26 17:43:32 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.5 2014/12/31 15:25:08 martin Exp $");
#include <sys/param.h>
#include <sys/cpu.h>
@@ -44,8 +44,6 @@ extern void ingenic_puts(const char *);
void ingenic_clockintr(uint32_t);
-struct clockframe cf;
-
static u_int
ingenic_count_read(struct timecounter *tc)
{
@@ -191,6 +189,7 @@ int cnt = 99;
void
ingenic_clockintr(uint32_t id)
{
+ extern struct clockframe cf;
struct cpu_info * const ci = curcpu();
#ifdef USE_OST
uint32_t new_cnt;