diff options
author | 2007-05-10 18:06:01 +0000 | |
---|---|---|
committer | 2007-05-10 18:06:01 +0000 | |
commit | 939260170de6e4ce2d5377154ed563bfdf77c8bf (patch) | |
tree | 4c6fb9a32b35e1c8df36ef1eee4839b3c84f2744 | |
parent | evcnt & friends were replaced by a proper interrupt counting mechanism 3 years ago; ok miod (diff) | |
download | wireguard-openbsd-939260170de6e4ce2d5377154ed563bfdf77c8bf.tar.xz wireguard-openbsd-939260170de6e4ce2d5377154ed563bfdf77c8bf.zip |
Don't zero out the cpu_info in cpu_attach. We've already set a field in
it (curproc) and it's allocated from zeroed memory anyway.
deraadt@ ok and test.
-rw-r--r-- | sys/arch/sparc/sparc/cpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/cpu.c b/sys/arch/sparc/sparc/cpu.c index e535c920705..0788428450f 100644 --- a/sys/arch/sparc/sparc/cpu.c +++ b/sys/arch/sparc/sparc/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.42 2007/05/08 07:23:18 art Exp $ */ +/* $OpenBSD: cpu.c,v 1.43 2007/05/10 18:06:01 art Exp $ */ /* $NetBSD: cpu.c,v 1.56 1997/09/15 20:52:36 pk Exp $ */ /* @@ -244,7 +244,6 @@ cpu_attach(parent, self, aux) if (sc->cacheinfo.c_totalsize != 0) cache_print(sc); - memset(&sc->ci, 0, sizeof(sc->ci)); sc->ci.ci_softc = sc; if (sc->master) { |