Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbmips/ingenic Move struct clockframe cf as extern...
details: https://anonhg.NetBSD.org/src/rev/239f6e7cfc39
branches: trunk
changeset: 335242:239f6e7cfc39
user: martin <martin%NetBSD.org@localhost>
date: Wed Dec 31 15:25:08 2014 +0000
description:
Move struct clockframe cf as extern declaration into ingenic_clockintr(),
to avoid a duplicate common.
diffstat:
sys/arch/evbmips/ingenic/clock.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 0a6777b512d4 -r 239f6e7cfc39 sys/arch/evbmips/ingenic/clock.c
--- a/sys/arch/evbmips/ingenic/clock.c Wed Dec 31 08:55:18 2014 +0000
+++ b/sys/arch/evbmips/ingenic/clock.c Wed Dec 31 15:25:08 2014 +0000
@@ -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 @@
void ingenic_clockintr(uint32_t);
-struct clockframe cf;
-
static u_int
ingenic_count_read(struct timecounter *tc)
{
@@ -191,6 +189,7 @@
void
ingenic_clockintr(uint32_t id)
{
+ extern struct clockframe cf;
struct cpu_info * const ci = curcpu();
#ifdef USE_OST
uint32_t new_cnt;
Home |
Main Index |
Thread Index |
Old Index