Module Name: src Committed By: pooka Date: Tue Dec 1 09:56:59 UTC 2009
Modified Files: src/sys/rump/librump/rumpvfs: rump_vfs.c Log Message: call cache_cpu_init() for all cpus To generate a diff of this commit: cvs rdiff -u -r1.37 -r1.38 src/sys/rump/librump/rumpvfs/rump_vfs.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/rump/librump/rumpvfs/rump_vfs.c diff -u src/sys/rump/librump/rumpvfs/rump_vfs.c:1.37 src/sys/rump/librump/rumpvfs/rump_vfs.c:1.38 --- src/sys/rump/librump/rumpvfs/rump_vfs.c:1.37 Fri Nov 27 16:43:51 2009 +++ src/sys/rump/librump/rumpvfs/rump_vfs.c Tue Dec 1 09:56:59 2009 @@ -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();