diff options
Diffstat (limited to 'arch/s390/kernel/cache.c')
| -rw-r--r-- | arch/s390/kernel/cache.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/arch/s390/kernel/cache.c b/arch/s390/kernel/cache.c index 8df8d8a19c98..64b24650e4f8 100644 --- a/arch/s390/kernel/cache.c +++ b/arch/s390/kernel/cache.c | |||
| @@ -59,8 +59,8 @@ enum { | |||
| 59 | 59 | ||
| 60 | enum { | 60 | enum { |
| 61 | CACHE_TI_UNIFIED = 0, | 61 | CACHE_TI_UNIFIED = 0, |
| 62 | CACHE_TI_INSTRUCTION = 0, | 62 | CACHE_TI_DATA = 0, |
| 63 | CACHE_TI_DATA, | 63 | CACHE_TI_INSTRUCTION, |
| 64 | }; | 64 | }; |
| 65 | 65 | ||
| 66 | struct cache_info { | 66 | struct cache_info { |
| @@ -121,7 +121,10 @@ static int __init cache_add(int level, int private, int type) | |||
| 121 | cache = kzalloc(sizeof(*cache), GFP_KERNEL); | 121 | cache = kzalloc(sizeof(*cache), GFP_KERNEL); |
| 122 | if (!cache) | 122 | if (!cache) |
| 123 | return -ENOMEM; | 123 | return -ENOMEM; |
| 124 | ti = type == CACHE_TYPE_DATA ? CACHE_TI_DATA : CACHE_TI_UNIFIED; | 124 | if (type == CACHE_TYPE_INSTRUCTION) |
| 125 | ti = CACHE_TI_INSTRUCTION; | ||
| 126 | else | ||
| 127 | ti = CACHE_TI_UNIFIED; | ||
| 125 | cache->size = ecag(EXTRACT_SIZE, level, ti); | 128 | cache->size = ecag(EXTRACT_SIZE, level, ti); |
| 126 | cache->line_size = ecag(EXTRACT_LINE_SIZE, level, ti); | 129 | cache->line_size = ecag(EXTRACT_LINE_SIZE, level, ti); |
| 127 | cache->associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); | 130 | cache->associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti); |
