summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-20 14:53:28 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-04-20 14:53:28 +0000
commit039b467fc4d1bdf35a8b94e3bbf794b98e9da345 (patch)
tree9e1e8823bda0a0d500ccb5495db8b7b7d2ec13ef
parent339178005a427accccfa5ae7a7cbaa631a5ebf13 (diff)
Corrected cache calculation for multiprocessor machines.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1614 17b73243-c579-4c4c-a9d2-2d5706c11dac
-rw-r--r--lib/make/known-architectures/linux2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/make/known-architectures/linux b/lib/make/known-architectures/linux
index 609e9da3..e6efdb29 100644
--- a/lib/make/known-architectures/linux
+++ b/lib/make/known-architectures/linux
@@ -182,7 +182,7 @@ else
fi
if test -z "$L2_CACHE_SIZE" ; then
- TEMP_CACHE_SIZE="`cat /proc/cpuinfo | perl -nae 'print $F[3] if(m:cache:)'`"
+ TEMP_CACHE_SIZE="`cat /proc/cpuinfo | perl -nae 'if(m:cache: && ! $dunnit) {print $F[3]; $dunnit=1}'`"
if test -n "$TEMP_CACHE_SIZE" ; then
L2_CACHE_SIZE="$TEMP_CACHE_SIZE*1024"
echo "Setting L2_CACHE_SIZE to $L2_CACHE_SIZE bytes"