Luis R. Rodriguez | 8d152e7 | 2016-04-13 17:04:34 -0700 | [diff] [blame] | 1 | #include <linux/kernel.h> |
| 2 | #include <linux/init.h> |
| 3 | |
| 4 | #include <asm/setup.h> |
| 5 | #include <asm/bios_ebda.h> |
| 6 | |
| 7 | void __init x86_early_init_platform_quirks(void) |
| 8 | { |
| 9 | x86_platform.legacy.rtc = 1; |
Luis R. Rodriguez | 1330e3b | 2016-04-13 17:04:36 -0700 | [diff] [blame^] | 10 | x86_platform.legacy.ebda_search = 0; |
Luis R. Rodriguez | 8d152e7 | 2016-04-13 17:04:34 -0700 | [diff] [blame] | 11 | |
| 12 | switch (boot_params.hdr.hardware_subarch) { |
Luis R. Rodriguez | 1330e3b | 2016-04-13 17:04:36 -0700 | [diff] [blame^] | 13 | case X86_SUBARCH_PC: |
| 14 | x86_platform.legacy.ebda_search = 1; |
| 15 | break; |
Luis R. Rodriguez | 8d152e7 | 2016-04-13 17:04:34 -0700 | [diff] [blame] | 16 | case X86_SUBARCH_XEN: |
| 17 | case X86_SUBARCH_LGUEST: |
| 18 | case X86_SUBARCH_INTEL_MID: |
| 19 | x86_platform.legacy.rtc = 0; |
| 20 | break; |
| 21 | } |
| 22 | |
| 23 | if (x86_platform.set_legacy_features) |
| 24 | x86_platform.set_legacy_features(); |
| 25 | } |