diff options
author | Tejun Heo <tj@kernel.org> | 2009-08-14 01:41:02 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-08-14 01:45:31 -0400 |
commit | 384be2b18a5f9475eab9ca2bdfa95cc1a04ef59c (patch) | |
tree | 04c93f391a1b65c8bf8d7ba8643c07d26c26590a /drivers/xen | |
parent | a76761b621bcd8336065c4fe3a74f046858bc34c (diff) | |
parent | 142d44b0dd6741a64a7bdbe029110e7c1dcf1d23 (diff) |
Merge branch 'percpu-for-linus' into percpu-for-next
Conflicts:
arch/sparc/kernel/smp_64.c
arch/x86/kernel/cpu/perf_counter.c
arch/x86/kernel/setup_percpu.c
drivers/cpufreq/cpufreq_ondemand.c
mm/percpu.c
Conflicts in core and arch percpu codes are mostly from commit
ed78e1e078dd44249f88b1dd8c76dafb39567161 which substituted many
num_possible_cpus() with nr_cpu_ids. As for-next branch has moved all
the first chunk allocators into mm/percpu.c, the changes are moved
from arch code to mm/percpu.c.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 7d2987e9b1bb..2f57276e87a2 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c | |||
@@ -928,9 +928,9 @@ static struct irq_chip xen_dynamic_chip __read_mostly = { | |||
928 | void __init xen_init_IRQ(void) | 928 | void __init xen_init_IRQ(void) |
929 | { | 929 | { |
930 | int i; | 930 | int i; |
931 | size_t size = nr_cpu_ids * sizeof(struct cpu_evtchn_s); | ||
932 | 931 | ||
933 | cpu_evtchn_mask_p = alloc_bootmem(size); | 932 | cpu_evtchn_mask_p = kcalloc(nr_cpu_ids, sizeof(struct cpu_evtchn_s), |
933 | GFP_KERNEL); | ||
934 | BUG_ON(cpu_evtchn_mask_p == NULL); | 934 | BUG_ON(cpu_evtchn_mask_p == NULL); |
935 | 935 | ||
936 | init_evtchn_cpu_bindings(); | 936 | init_evtchn_cpu_bindings(); |