summaryrefslogtreecommitdiff
path: root/sys/arch/loongson/include
diff options
context:
space:
mode:
authorPaul Irofti <pirofti@cvs.openbsd.org>2013-01-15 23:30:38 +0000
committerPaul Irofti <pirofti@cvs.openbsd.org>2013-01-15 23:30:38 +0000
commit764848d7a3228f5177941ebbe5cebb373389146c (patch)
treecfade82b48dcceb1df0b28e914d9adaa91cea9a8 /sys/arch/loongson/include
parentc68c6c0b4e2c1cb569a2d032f46affae716525b0 (diff)
Loongson: Add a stat clock for the lemote machines.
The stat clock is implemented so that it also covers, at least according to the tests I've done, Torek's paper on randomized sampling. Most of the bits for randomizing the stat ticks were taken from sparc's implementation and adapted to the companion chip's MFGPT frequencies. Before this my lemote showed a 8% cpu usage for the cpuhog example from Torek's paper even though openssl speed showed differences up to 27% when ran with and without cpuhog. With the new stat clock it shows cpuhog around 18-22%, which I think is the proper value. Okay miod@.
Diffstat (limited to 'sys/arch/loongson/include')
-rw-r--r--sys/arch/loongson/include/intr.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/loongson/include/intr.h b/sys/arch/loongson/include/intr.h
index 95bed3bdd7a..5f806e1afc9 100644
--- a/sys/arch/loongson/include/intr.h
+++ b/sys/arch/loongson/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.3 2010/12/21 14:56:24 claudio Exp $ */
+/* $OpenBSD: intr.h,v 1.4 2013/01/15 23:30:36 pirofti Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -54,6 +54,7 @@
#define IPL_TTY 4 /* terminal */
#define IPL_VM 5 /* memory allocation */
#define IPL_CLOCK 6 /* clock */
+#define IPL_STATCLOCK IPL_CLOCK
#define IPL_SCHED 7 /* everything */
#define IPL_HIGH 7 /* everything */
#define NIPLS 8 /* Number of levels */