Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334742
b: refs/heads/master
c: d18f99c
h: refs/heads/master
v: v3
  • Loading branch information
Heiko Carstens authored and Martin Schwidefsky committed Oct 18, 2012
1 parent 291f9fe commit be9d392
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c985cb37f1b39c2c8035af741a2a0b79f1fbaca7
refs/heads/master: d18f99c28bab882f42949363658da5cf1d2f624f
9 changes: 6 additions & 3 deletions trunk/arch/s390/kernel/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ enum {

enum {
CACHE_TI_UNIFIED = 0,
CACHE_TI_INSTRUCTION = 0,
CACHE_TI_DATA,
CACHE_TI_DATA = 0,
CACHE_TI_INSTRUCTION,
};

struct cache_info {
Expand Down Expand Up @@ -121,7 +121,10 @@ static int __init cache_add(int level, int private, int type)
cache = kzalloc(sizeof(*cache), GFP_KERNEL);
if (!cache)
return -ENOMEM;
ti = type == CACHE_TYPE_DATA ? CACHE_TI_DATA : CACHE_TI_UNIFIED;
if (type == CACHE_TYPE_INSTRUCTION)
ti = CACHE_TI_INSTRUCTION;
else
ti = CACHE_TI_UNIFIED;
cache->size = ecag(EXTRACT_SIZE, level, ti);
cache->line_size = ecag(EXTRACT_LINE_SIZE, level, ti);
cache->associativity = ecag(EXTRACT_ASSOCIATIVITY, level, ti);
Expand Down

0 comments on commit be9d392

Please sign in to comment.