diff mbox

[v1,1/2] x86/init: disable pnpbios for X86_SUBARCH_INTEL_MID

Message ID 1460161361-13635-2-git-send-email-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show

Commit Message

Luis Chamberlain April 9, 2016, 12:22 a.m. UTC
As per hpa Intel MID platforms can also disable pnpbios [0].

[0] http://lkml.kernel.org/r/5702B5C2.7070101@zytor.com

Suggested-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---
 arch/x86/kernel/platform-quirks.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Luis Chamberlain April 13, 2016, 11:33 p.m. UTC | #1
On Fri, Apr 08, 2016 at 05:22:40PM -0700, Luis R. Rodriguez wrote:
> As per hpa Intel MID platforms can also disable pnpbios [0].
> 
> [0] http://lkml.kernel.org/r/5702B5C2.7070101@zytor.com
> 
> Suggested-by: H. Peter Anvin <hpa@zytor.com>
> Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>

As per 0-day this saves us 8 bytes on tinyconfig. Will amend
and resubmit with updated commit log.

  Luis
diff mbox

Patch

diff --git a/arch/x86/kernel/platform-quirks.c b/arch/x86/kernel/platform-quirks.c
index ab643825a7aa..853919484340 100644
--- a/arch/x86/kernel/platform-quirks.c
+++ b/arch/x86/kernel/platform-quirks.c
@@ -16,10 +16,8 @@  void __init x86_early_init_platform_quirks(void)
 		break;
 	case X86_SUBARCH_XEN:
 	case X86_SUBARCH_LGUEST:
-		x86_platform.legacy.devices.pnpbios = 0;
-		x86_platform.legacy.rtc = 0;
-		break;
 	case X86_SUBARCH_INTEL_MID:
+		x86_platform.legacy.devices.pnpbios = 0;
 		x86_platform.legacy.rtc = 0;
 		break;
 	}