diff options
author | Elliott Hughes <enh@google.com> | 2014-05-05 22:07:02 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-05 22:07:02 +0000 |
commit | 7cc73694fa8e4f4187453db55b88778f2903e923 (patch) | |
tree | 88e73f95a4c7760ab45673fa6ac38b47c90cae20 /libcutils | |
parent | e6fff56f2e0867f8797ed3f672f5834aaee7442a (diff) | |
parent | b389440c8bdc06fc6d3fdaad6acb8f9c124e40a7 (diff) | |
download | system_core-7cc73694fa8e4f4187453db55b88778f2903e923.zip system_core-7cc73694fa8e4f4187453db55b88778f2903e923.tar.gz system_core-7cc73694fa8e4f4187453db55b88778f2903e923.tar.bz2 |
am b389440c: am 54c90a14: am 752115dd: Merge "Add Silvermont architecture cache sizes"
* commit 'b389440c8bdc06fc6d3fdaad6acb8f9c124e40a7':
Add Silvermont architecture cache sizes
Diffstat (limited to 'libcutils')
-rw-r--r-- | libcutils/arch-x86/cache_wrapper.S | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libcutils/arch-x86/cache_wrapper.S b/libcutils/arch-x86/cache_wrapper.S index 508fdd3..9eee25c 100644 --- a/libcutils/arch-x86/cache_wrapper.S +++ b/libcutils/arch-x86/cache_wrapper.S @@ -17,8 +17,15 @@ * Contributed by: Intel Corporation */ +#if defined(__slm__) +/* Values are optimized for Silvermont */ +#define SHARED_CACHE_SIZE (1024*1024) /* Silvermont L2 Cache */ +#define DATA_CACHE_SIZE (24*1024) /* Silvermont L1 Data Cache */ +#else /* Values are optimized for Atom */ -#define SHARED_CACHE_SIZE (512*1024) /* Atom L2 Cache */ -#define DATA_CACHE_SIZE (24*1024) /* Atom L1 Data Cache */ +#define SHARED_CACHE_SIZE (512*1024) /* Atom L2 Cache */ +#define DATA_CACHE_SIZE (24*1024) /* Atom L1 Data Cache */ +#endif + #define SHARED_CACHE_SIZE_HALF (SHARED_CACHE_SIZE / 2) #define DATA_CACHE_SIZE_HALF (DATA_CACHE_SIZE / 2) |