Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpvfs call cache_cpu_init() for all cpus
details: https://anonhg.NetBSD.org/src/rev/c028c0df2e11
branches: trunk
changeset: 749518:c028c0df2e11
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Dec 01 09:56:59 2009 +0000
description:
call cache_cpu_init() for all cpus
diffstat:
sys/rump/librump/rumpvfs/rump_vfs.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (39 lines):
diff -r 9f431190ffd3 -r c028c0df2e11 sys/rump/librump/rumpvfs/rump_vfs.c
--- a/sys/rump/librump/rumpvfs/rump_vfs.c Tue Dec 01 09:52:29 2009 +0000
+++ b/sys/rump/librump/rumpvfs/rump_vfs.c Tue Dec 01 09:56:59 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_vfs.c,v 1.37 2009/11/27 16:43:51 pooka Exp $ */
+/* $NetBSD: rump_vfs.c,v 1.38 2009/12/01 09:56:59 pooka Exp $ */
/*
* Copyright (c) 2008 Antti Kantee. All Rights Reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.37 2009/11/27 16:43:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_vfs.c,v 1.38 2009/12/01 09:56:59 pooka Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@@ -77,7 +77,7 @@
{
char buf[64];
int error;
- int rv;
+ int rv, i;
extern int dovfsusermount; /* XXX */
dovfsusermount = 1; /* XXX */
@@ -90,7 +90,10 @@
rumpblk_init();
- cache_cpu_init(rump_cpu);
+ for (i = 0; i < ncpu; i++) {
+ struct cpu_info *ci = cpu_lookup(i);
+ cache_cpu_init(ci);
+ }
vfsinit();
bufinit();
wapbl_init();
Home |
Main Index |
Thread Index |
Old Index