aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
authorNamhoon Kim <namhoonk@cs.unc.edu>2017-03-20 18:06:57 -0400
committerNamhoon Kim <namhoonk@cs.unc.edu>2017-03-20 18:06:57 -0400
commit9c01fdebeab042478c8ccb65cbf73f056690bbba (patch)
tree842414d62c573e0ca3c8507c2fafeb4093c579c9 /litmus
parentdb10d5d59c677daa184e07ca4fb43ecab1ddc942 (diff)
Fixed default values for colors
Diffstat (limited to 'litmus')
-rw-r--r--litmus/bank_proc.c20
-rw-r--r--litmus/cache_proc.c16
2 files changed, 18 insertions, 18 deletions
diff --git a/litmus/bank_proc.c b/litmus/bank_proc.c
index b84f2603293e..2fac8d06f242 100644
--- a/litmus/bank_proc.c
+++ b/litmus/bank_proc.c
@@ -45,15 +45,15 @@ int refill_page_pool = 0;
45spinlock_t reclaim_lock; 45spinlock_t reclaim_lock;
46 46
47unsigned int set_partition[9] = { 47unsigned int set_partition[9] = {
48 0x00000003, /* Core 0, and Level A*/ 48 0x0000000f, /* Core 0, and Level A*/
49 0x00000003, /* Core 0, and Level B*/ 49 0x0000000f, /* Core 0, and Level B*/
50 0x0000000C, /* Core 1, and Level A*/ 50 0x000000f0, /* Core 1, and Level A*/
51 0x0000000C, /* Core 1, and Level B*/ 51 0x000000f0, /* Core 1, and Level B*/
52 0x00000030, /* Core 2, and Level A*/ 52 0x00000f00, /* Core 2, and Level A*/
53 0x00000030, /* Core 2, and Level B*/ 53 0x00000f00, /* Core 2, and Level B*/
54 0x000000C0, /* Core 3, and Level A*/ 54 0x0000f000, /* Core 3, and Level A*/
55 0x000000C0, /* Core 3, and Level B*/ 55 0x0000f000, /* Core 3, and Level B*/
56 0x0000ff00, /* Level C */ 56 0x0000ffff, /* Level C */
57}; 57};
58 58
59unsigned int bank_partition[9] = { 59unsigned int bank_partition[9] = {
@@ -251,7 +251,7 @@ static int do_add_pages(void)
251 //if (atomic_read(&color_groups[color].nr_pages) < PAGES_PER_COLOR) { 251 //if (atomic_read(&color_groups[color].nr_pages) < PAGES_PER_COLOR) {
252 //if ( PAGES_PER_COLOR && color>=16*2) { 252 //if ( PAGES_PER_COLOR && color>=16*2) {
253 //if (color>=32) { 253 //if (color>=32) {
254 if (color>=0) { 254 if (color>=16) {
255 add_page_to_color_list(page); 255 add_page_to_color_list(page);
256 // printk("add page(%d) = color %x, bank %x\n", color, page_color(page), page_bank(page)); 256 // printk("add page(%d) = color %x, bank %x\n", color, page_color(page), page_bank(page));
257 } else{ 257 } else{
diff --git a/litmus/cache_proc.c b/litmus/cache_proc.c
index 9c50a0147f0d..2d90454ad5cc 100644
--- a/litmus/cache_proc.c
+++ b/litmus/cache_proc.c
@@ -88,14 +88,14 @@ u32 way_partition[4] = {
88}; 88};
89 89
90u32 way_partitions[9] = { 90u32 way_partitions[9] = {
91 0xffff0003, /* cpu0 A */ 91 0xffff00ff, /* cpu0 A */
92 0xffff0003, /* cpu0 B */ 92 0xffff00ff, /* cpu0 B */
93 0xffff000C, /* cpu1 A */ 93 0xffff00ff, /* cpu1 A */
94 0xffff000C, /* cpu1 B */ 94 0xffff00ff, /* cpu1 B */
95 0xffff0030, /* cpu2 A */ 95 0xffff00ff, /* cpu2 A */
96 0xffff0030, /* cpu2 B */ 96 0xffff00ff, /* cpu2 B */
97 0xffff00C0, /* cpu3 A */ 97 0xffff00ff, /* cpu3 A */
98 0xffff00C0, /* cpu3 B */ 98 0xffff00ff, /* cpu3 B */
99 0xffffff00, /* lv C */ 99 0xffffff00, /* lv C */
100}; 100};
101 101