mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
hv: allocate synic pages for all present CPUs
am: 879dc37cc3
Change-Id: I0d8f2c5080ebffe49d7d32c7f58f01049a560ea1
This commit is contained in:
@@ -411,7 +411,7 @@ int hv_synic_alloc(void)
|
||||
goto err;
|
||||
}
|
||||
|
||||
for_each_online_cpu(cpu) {
|
||||
for_each_present_cpu(cpu) {
|
||||
hv_context.event_dpc[cpu] = kmalloc(size, GFP_ATOMIC);
|
||||
if (hv_context.event_dpc[cpu] == NULL) {
|
||||
pr_err("Unable to allocate event dpc\n");
|
||||
@@ -482,7 +482,7 @@ void hv_synic_free(void)
|
||||
int cpu;
|
||||
|
||||
kfree(hv_context.hv_numa_map);
|
||||
for_each_online_cpu(cpu)
|
||||
for_each_present_cpu(cpu)
|
||||
hv_synic_free_cpu(cpu);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user