x86, setup: Let early_memremap() handle page alignment
authorWANG Chao <chaowang@redhat.com>
Wed, 7 Jan 2015 10:55:48 +0000 (18:55 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 Jan 2015 15:14:26 +0000 (16:14 +0100)
commit7389882c81474d635a208726edb22938645ff9ad
tree3a3acfb279ec0ba1fb07271da6e9c8f07b8032e7
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc
x86, setup: Let early_memremap() handle page alignment

early_memremap() takes care of page alignment and map size, so we can
just remap the required data size and get rid of the adjustments in
the setup code.

[tglx: Massaged changelog ]

Signed-off-by: WANG Chao <chaowang@redhat.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Link: http://lkml.kernel.org/r/1420628150-16872-1-git-send-email-chaowang@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/setup.c