Module Name: src
Committed By: riastradh
Date: Tue Apr 21 12:55:57 UTC 2015
Modified Files:
src/sys/kern: kern_rndq.c
Log Message:
Mark some variables __read_mostly.
To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/kern/kern_rndq.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/kern/kern_rndq.c
diff -u src/sys/kern/kern_rndq.c:1.69 src/sys/kern/kern_rndq.c:1.70
--- src/sys/kern/kern_rndq.c:1.69 Tue Apr 21 12:07:31 2015
+++ src/sys/kern/kern_rndq.c Tue Apr 21 12:55:57 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_rndq.c,v 1.69 2015/04/21 12:07:31 riastradh Exp $ */
+/* $NetBSD: kern_rndq.c,v 1.70 2015/04/21 12:55:57 riastradh Exp $ */
/*-
* Copyright (c) 1997-2013 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.69 2015/04/21 12:07:31 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_rndq.c,v 1.70 2015/04/21 12:55:57 riastradh Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -117,7 +117,7 @@ static struct {
/*
* Memory pool for sample buffers
*/
-static pool_cache_t rnd_mempc;
+static pool_cache_t rnd_mempc __read_mostly;
/*
* Global entropy pool and sources.
@@ -148,7 +148,8 @@ static krndsource_t rnd_source_no_collec
krndsource_t rnd_printf_source, rnd_autoconf_source;
-static void *rnd_process, *rnd_wakeup;
+static void *rnd_process __read_mostly;
+static void *rnd_wakeup __read_mostly;
static inline uint32_t rnd_counter(void);
static void rnd_intr(void *);