3bf430e1c1
Access to %tick remains privileged on OpenBSD. ok steven@ * Remove steven@ as maintainer as per his request.
16 lines
593 B
Plaintext
16 lines
593 B
Plaintext
$OpenBSD: patch-kernel_cycle_h,v 1.1 2011/09/08 14:47:31 naddy Exp $
|
|
|
|
Access to %tick remains privileged on OpenBSD.
|
|
|
|
--- kernel/cycle.h.orig Fri Aug 26 23:20:03 2011
|
|
+++ kernel/cycle.h Fri Aug 26 23:20:22 2011
|
|
@@ -402,7 +402,7 @@ INLINE_ELAPSED(__inline__)
|
|
#endif
|
|
|
|
/*----------------------------------------------------------------*/
|
|
-#if defined(__GNUC__) && defined(__sparc_v9__) && !defined(HAVE_TICK_COUNTER)
|
|
+#if defined(__GNUC__) && defined(__sparc_v9__) && !defined(__OpenBSD__) && !defined(HAVE_TICK_COUNTER)
|
|
typedef unsigned long ticks;
|
|
|
|
static __inline__ ticks getticks(void)
|