diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2011-04-26 17:13:13 -0400 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2011-04-26 17:13:13 -0400 |
commit | 282af7758c11caace9f96b680e3a4b472c3a344b (patch) | |
tree | 53292f413d22fd5bfc691c3f7fa16d212547a183 /litmus/affinity.c | |
parent | 0640d8f6441b2c8865feccbbd50388acc7404510 (diff) |
Not detecting L3 cache level since L1 has two levels.
Diffstat (limited to 'litmus/affinity.c')
-rw-r--r-- | litmus/affinity.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/litmus/affinity.c b/litmus/affinity.c index 9d5405cf05fd..3b430d18885b 100644 --- a/litmus/affinity.c +++ b/litmus/affinity.c | |||
@@ -12,12 +12,12 @@ void init_topology(void) | |||
12 | int chk; | 12 | int chk; |
13 | int depth = num_cache_leaves; | 13 | int depth = num_cache_leaves; |
14 | 14 | ||
15 | if(depth > MAX_CACHE_DEPTH) /* L4 and greater?? */ | 15 | if(depth > NUM_CACHE_LEVELS) |
16 | depth = MAX_CACHE_DEPTH; | 16 | depth = NUM_CACHE_LEVELS; |
17 | 17 | ||
18 | for_each_online_cpu(cpu) | 18 | for_each_online_cpu(cpu) |
19 | { | 19 | { |
20 | for(i = 0; i < (int)depth; ++i) | 20 | for(i = 0; i < depth; ++i) |
21 | { | 21 | { |
22 | long unsigned int firstbits; | 22 | long unsigned int firstbits; |
23 | 23 | ||
@@ -37,7 +37,7 @@ void init_topology(void) | |||
37 | } | 37 | } |
38 | 38 | ||
39 | /* set data for non-existent levels */ | 39 | /* set data for non-existent levels */ |
40 | for(; i < MAX_CACHE_DEPTH; ++i) | 40 | for(; i < NUM_CACHE_LEVELS; ++i) |
41 | { | 41 | { |
42 | neigh_info[cpu].size[i] = 0; | 42 | neigh_info[cpu].size[i] = 0; |
43 | 43 | ||