summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-06-26 11:16:40 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2004-06-26 11:16:40 +0000
commitcdfbf3c3e9eee598e3cfe5a0852df8b94ee28316 (patch)
tree09c1c8f633b81e2451c0d8696a903fe2d8868702 /src
parent921af6c7ee3133c5d40e4e74499d14c40fd9f62f (diff)
Do not use CCTK_L2_CACHE_SIZE and CCTK_L2_CACHELINE_BYTES macros anymore.
They have been depricated in beta13. git-svn-id: http://svn.cactuscode.org/flesh/trunk@3791 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r--src/main/SetupCache.c28
1 files changed, 7 insertions, 21 deletions
diff --git a/src/main/SetupCache.c b/src/main/SetupCache.c
index e118ae8a..71ffa217 100644
--- a/src/main/SetupCache.c
+++ b/src/main/SetupCache.c
@@ -2,9 +2,9 @@
@file SetupCache.c
@date Tue Nov 30 10:30:09 1999
@author Tom Goodale
- @desc
+ @desc
Sets up cache stuff for the CCTK
- @enddesc
+ @enddesc
@version $Id$
@@*/
@@ -18,17 +18,14 @@ static const char *rcsid = "$Header$";
CCTK_FILEVERSION(main_SetupCache_c);
-/********************************************************************
- ********************* CCTK Local Routines **********************
- ********************************************************************/
/*@@
@routine CCTKi_SetupCache
@date Tue Nov 30 10:50:02 1999
@author Tom Goodale
- @desc
+ @desc
Sets the cache information.
- @enddesc
+ @enddesc
@calls Utili_CacheDataSet
@returntype int
@@ -38,28 +35,17 @@ CCTK_FILEVERSION(main_SetupCache_c);
@@*/
int CCTKi_SetupCache (void)
{
- unsigned long cache_size;
- unsigned long cacheline_bytes;
DECLARE_CCTK_PARAMETERS
if (manual_cache_setup)
{
- cache_size = manual_cache_size;
- cacheline_bytes = manual_cacheline_bytes;
- }
+ Utili_CacheDataSet (manual_cacheline_bytes, manual_cache_size);
+ }
else
{
-#ifdef CCTK_CACHE_SIZE
- cache_size = CCTK_CACHE_SIZE;
- cacheline_bytes = CCTK_CACHELINE_BYTES;
-#else
- cache_size = CCTK_L2_CACHE_SIZE;
- cacheline_bytes = CCTK_L2_CACHELINE_BYTES;
-#endif
+ Utili_CacheDataSet (CCTK_CACHELINE_BYTES, CCTK_CACHE_SIZE);
}
- Utili_CacheDataSet (cacheline_bytes, cache_size);
-
return (0);
}