change function names
This commit is contained in:
@@ -11,7 +11,7 @@ struct x86_cpu_local_variables *locals;
|
||||
void init_processors_local(int max_id)
|
||||
{
|
||||
/* Is contiguous allocating adequate?? */
|
||||
locals = aal_mc_alloc_pages(max_id, 0);
|
||||
locals = ihk_mc_alloc_pages(max_id, 0);
|
||||
memset(locals, 0, PAGE_SIZE * max_id);
|
||||
|
||||
kprintf("locals = %p\n", locals);
|
||||
@@ -30,14 +30,14 @@ static void *get_x86_cpu_local_kstack(int id)
|
||||
|
||||
struct x86_cpu_local_variables *get_x86_this_cpu_local(void)
|
||||
{
|
||||
int id = aal_mc_get_processor_id();
|
||||
int id = ihk_mc_get_processor_id();
|
||||
|
||||
return get_x86_cpu_local_variable(id);
|
||||
}
|
||||
|
||||
void *get_x86_this_cpu_kstack(void)
|
||||
{
|
||||
int id = aal_mc_get_processor_id();
|
||||
int id = ihk_mc_get_processor_id();
|
||||
|
||||
return get_x86_cpu_local_kstack(id);
|
||||
}
|
||||
@@ -52,14 +52,14 @@ static void set_gs_base(void *address)
|
||||
wrmsr(MSR_GS_BASE, (unsigned long)address);
|
||||
}
|
||||
|
||||
static aal_atomic_t last_processor_id = AAL_ATOMIC_INIT(-1);
|
||||
static ihk_atomic_t last_processor_id = IHK_ATOMIC_INIT(-1);
|
||||
|
||||
void assign_processor_id(void)
|
||||
{
|
||||
int id;
|
||||
struct x86_cpu_local_variables *v;
|
||||
|
||||
id = aal_atomic_inc_return(&last_processor_id);
|
||||
id = ihk_atomic_inc_return(&last_processor_id);
|
||||
|
||||
v = get_x86_cpu_local_variable(id);
|
||||
set_gs_base(v);
|
||||
@@ -67,8 +67,8 @@ void assign_processor_id(void)
|
||||
v->processor_id = id;
|
||||
}
|
||||
|
||||
/** AAL **/
|
||||
int aal_mc_get_processor_id(void)
|
||||
/** IHK **/
|
||||
int ihk_mc_get_processor_id(void)
|
||||
{
|
||||
int id;
|
||||
|
||||
@@ -77,7 +77,7 @@ int aal_mc_get_processor_id(void)
|
||||
return id;
|
||||
}
|
||||
|
||||
int aal_mc_get_hardware_processor_id(void)
|
||||
int ihk_mc_get_hardware_processor_id(void)
|
||||
{
|
||||
struct x86_cpu_local_variables *v = get_x86_this_cpu_local();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user