From: Hendrik Brueckner Date: Fri, 7 Aug 2009 08:39:24 +0000 (+0200) Subject: [S390] kernel: Storing machine flags early in lowcore X-Git-Tag: v2.6.31-rc6~42^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=677c1dd706d9cc384730cbd52baf821923d8be9b;p=platform%2Fkernel%2Flinux-stable.git [S390] kernel: Storing machine flags early in lowcore Currently, the machine_flags are stored late in the startup initialization which results in failing machine type checks (e.g. for MACHINE_IS_VM). To allow these checks, store the machine flags in the lowcore when the machine type has been detected. Moving the machine_flags to the lowcore has been introduced with git commit 25097bf153391f7be4c591d47061b3dc4990dac2 Signed-off-by: Hendrik Brueckner Signed-off-by: Martin Schwidefsky --- diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c index 8d15314..cae14c4 100644 --- a/arch/s390/kernel/early.c +++ b/arch/s390/kernel/early.c @@ -208,6 +208,9 @@ static noinline __init void detect_machine_type(void) machine_flags |= MACHINE_FLAG_KVM; else machine_flags |= MACHINE_FLAG_VM; + + /* Store machine flags for setting up lowcore early */ + S390_lowcore.machine_flags = machine_flags; } static __init void early_pgm_check_handler(void)