SMP: generic function call facility for CPU sets

This commit is contained in:
Balazs Gerofi
2017-05-05 13:49:43 +09:00
parent ba7edf1981
commit dd2ef89997
4 changed files with 173 additions and 1 deletions

View File

@ -37,8 +37,10 @@ void cpu_local_var_init(void)
clv = ihk_mc_alloc_pages(z, IHK_MC_AP_CRITICAL);
memset(clv, 0, z * PAGE_SIZE);
for(i = 0; i < num_processors; i++)
for (i = 0; i < num_processors; i++) {
clv[i].monitor = monitor + i;
INIT_LIST_HEAD(&clv[i].smp_func_req_list);
}
cpu_local_var_initialized = 1;
}