Merge branch 'for-2.6.40' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu
* 'for-2.6.40' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu: percpu: Unify input section names percpu: Avoid extra NOP in percpu_cmpxchg16b_double percpu: Cast away printk format warning percpu: Always align percpu output section to PAGE_SIZE Fix up fairly trivial conflict in arch/x86/include/asm/percpu.h as per Tejun
This commit is contained in:
@@ -1215,8 +1215,10 @@ int __init pcpu_setup_first_chunk(const struct pcpu_alloc_info *ai,
|
||||
PCPU_SETUP_BUG_ON(ai->nr_groups <= 0);
|
||||
#ifdef CONFIG_SMP
|
||||
PCPU_SETUP_BUG_ON(!ai->static_size);
|
||||
PCPU_SETUP_BUG_ON((unsigned long)__per_cpu_start & ~PAGE_MASK);
|
||||
#endif
|
||||
PCPU_SETUP_BUG_ON(!base_addr);
|
||||
PCPU_SETUP_BUG_ON((unsigned long)base_addr & ~PAGE_MASK);
|
||||
PCPU_SETUP_BUG_ON(ai->unit_size < size_sum);
|
||||
PCPU_SETUP_BUG_ON(ai->unit_size & ~PAGE_MASK);
|
||||
PCPU_SETUP_BUG_ON(ai->unit_size < PCPU_MIN_UNIT_SIZE);
|
||||
@@ -1645,8 +1647,8 @@ int __init pcpu_embed_first_chunk(size_t reserved_size, size_t dyn_size,
|
||||
/* warn if maximum distance is further than 75% of vmalloc space */
|
||||
if (max_distance > (VMALLOC_END - VMALLOC_START) * 3 / 4) {
|
||||
pr_warning("PERCPU: max_distance=0x%zx too large for vmalloc "
|
||||
"space 0x%lx\n",
|
||||
max_distance, VMALLOC_END - VMALLOC_START);
|
||||
"space 0x%lx\n", max_distance,
|
||||
(unsigned long)(VMALLOC_END - VMALLOC_START));
|
||||
#ifdef CONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK
|
||||
/* and fail if we have fallback */
|
||||
rc = -EINVAL;
|
||||
|
Reference in New Issue
Block a user