$NetBSD: patch-ap,v 1.2 2000/05/08 05:20:54 itohy Exp $ --- src/genarch.c.orig Thu Mar 9 03:40:41 2000 +++ src/genarch.c Mon May 1 20:26:24 2000 @@ -194,6 +194,10 @@ clock_t t = 0; clock_t t_eps; +#if 0 + /* This doesn't work on multi-user environments nor on + * small-cache (< 1KB) machines. + */ /* * Increase the number of repetitions until the time is * long enough to exceed the likely uncertainty. @@ -220,7 +224,12 @@ if (nreps == 0) nreps = 1, t <<= 1; } +#else + bsize = 512; +#endif define_int(f, "ARCH_CACHE1_SIZE", bsize >> 1); +#if 0 + /* Same as above. */ /* * Do the same thing a second time for the secondary cache. */ @@ -238,6 +247,7 @@ if (nreps == 0) nreps = 1, t <<= 1; } +#endif define_int(f, "ARCH_CACHE2_SIZE", bsize >> 1); }