Use the logical index for now
This commit is contained in:
parent
3cc3d831f5
commit
54cf4d3409
@ -96,8 +96,9 @@ load_cpus(struct loom *loom, JSON_Object *meta)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Cast from double */
|
/* Cast from double */
|
||||||
//int index = (int) json_object_get_number(jcpu, "index");
|
int index = (int) json_object_get_number(jcpu, "index");
|
||||||
int phyid = (int) json_object_get_number(jcpu, "phyid");
|
/* FIXME: Use phyid instead */
|
||||||
|
//int phyid = (int) json_object_get_number(jcpu, "phyid");
|
||||||
|
|
||||||
struct cpu *cpu = calloc(1, sizeof(struct cpu));
|
struct cpu *cpu = calloc(1, sizeof(struct cpu));
|
||||||
if (cpu == NULL) {
|
if (cpu == NULL) {
|
||||||
@ -105,7 +106,7 @@ load_cpus(struct loom *loom, JSON_Object *meta)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
cpu_init_begin(cpu, phyid, 0);
|
cpu_init_begin(cpu, index, 0);
|
||||||
|
|
||||||
if (loom_add_cpu(loom, cpu) != 0) {
|
if (loom_add_cpu(loom, cpu) != 0) {
|
||||||
err("loom_add_cpu() failed");
|
err("loom_add_cpu() failed");
|
||||||
|
Loading…
Reference in New Issue
Block a user