@@ -496,18 +496,16 @@ static bool parse_options(int argc, char *argv[])
pir = get_pir(i);
if (pir < 0)
return true;
- break;
- }
- }
- if (pir < 0)
- return true;
- pir_map(pir, &chip, &core, &thread);
+ pir_map(pir, &chip, &core, &thread);
- threadsel[chip][core][thread] = 1;
- chipsel[chip][core] = &threadsel[chip][core][thread];
- processorsel[chip] = &chipsel[chip][core];
+ processorsel[chip] = &chipsel[chip][0];
+ chipsel[chip][core] = &threadsel[chip][core][0];
+ threadsel[chip][core][thread] = 1;
+ }
+ }
}
+
return true;
}
The selection should be applied to all the linux cpus in the list and not just the first one. Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- src/main.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-)