summaryrefslogtreecommitdiff
path: root/sys/arch/usermode/dev
diff options
context:
space:
mode:
authorreinoud <reinoud@NetBSD.org>2012-01-14 21:24:52 +0000
committerreinoud <reinoud@NetBSD.org>2012-01-14 21:24:52 +0000
commitb33d35751caa065d43b32ac99362fd80ca7b6b43 (patch)
tree03b70415b4da686d808938679bf629f13900e699 /sys/arch/usermode/dev
parenta566a44a53fc19453c8fcea40c37c3b3f801e4f7 (diff)
Cleanup clock.c removing unneeded function
Diffstat (limited to 'sys/arch/usermode/dev')
-rw-r--r--sys/arch/usermode/dev/clock.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/sys/arch/usermode/dev/clock.c b/sys/arch/usermode/dev/clock.c
index 7db94e1682b..6a144de304f 100644
--- a/sys/arch/usermode/dev/clock.c
+++ b/sys/arch/usermode/dev/clock.c
@@ -1,4 +1,4 @@
-/* $NetBSD: clock.c,v 1.23 2011/12/15 03:42:32 jmcneill Exp $ */
+/* $NetBSD: clock.c,v 1.24 2012/01/14 21:24:52 reinoud Exp $ */
/*-
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
@@ -29,7 +29,7 @@
#include "opt_hz.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.23 2011/12/15 03:42:32 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.24 2012/01/14 21:24:52 reinoud Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -50,7 +50,6 @@ __KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.23 2011/12/15 03:42:32 jmcneill Exp $");
static int clock_match(device_t, cfdata_t, void *);
static void clock_attach(device_t, device_t, void *);
-static void clock(void);
static void clock_signal(int sig, siginfo_t *info, void *ctx);
static unsigned int clock_getcounter(struct timecounter *);
@@ -124,35 +123,17 @@ clock_intr(void *priv)
while (nticks-- > 0) {
hardclock(&cf);
- };
+ }
}
static void
-clock(void)
+clock_signal(int sig, siginfo_t *info, void *ctx)
{
curcpu()->ci_idepth++;
- spl_intr(IPL_SOFTCLOCK, clock_intr, NULL);
+ spl_intr(IPL_CLOCK, clock_intr, NULL);
curcpu()->ci_idepth--;
}
-static void
-clock_signal(int sig, siginfo_t *info, void *ctx)
-{
-#if 0
- ucontext_t *uct = ctx;
- struct lwp *l;
- struct pcb *pcb;
-
- l = curlwp;
- pcb = lwp_getpcb(l);
-
- /* copy this state as where the lwp was XXX NEEDED? */
- memcpy(&pcb->pcb_ucp, uct, sizeof(ucontext_t));
-#endif
-
- clock();
-}
-
static unsigned int
clock_getcounter(struct timecounter *tc)
{