x86/intel/quark: Run IMR self-test on IMR capble hw only
authorBryan O'Donoghue <pure.logic@nexus-software.ie>
Tue, 31 Mar 2015 11:15:36 +0000 (12:15 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Apr 2015 10:47:50 +0000 (12:47 +0200)
commita6fcb6d4804b51ffcae7881c7f99483f4981ddf1
treeef25e75d86870eb538cf5329fc43f7bb6adee2f9
parente42391cd048809d903291d07f86ed3934ce138e9
x86/intel/quark: Run IMR self-test on IMR capble hw only

Automated testing with LKP shows IMR self test code running and
printing error messages on QEMU hardware lacking IMR support.

Update IMR self-test code to run only when IMR hardware should
be present. Tested on Quark X1000 and QEMU.

Signed-off-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Acked-by: Ong Boon Leong <boon.leong.ong@intel.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: andriy.shevchenko@intel.com
Cc: dvhart@linux.intel.com
Cc: huang.ying.caritas@gmail.com
Cc: ying.huang@intel.com
Link: http://lkml.kernel.org/r/1427800536-32339-1-git-send-email-pure.logic@nexus-software.ie
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/platform/intel-quark/imr_selftest.c