x86/rtc: Replace paravirt rtc check with platform legacy quirk
[deliverable/linux.git] / arch / x86 / kernel / platform-quirks.c
CommitLineData
8d152e7a
LR
1#include <linux/kernel.h>
2#include <linux/init.h>
3
4#include <asm/setup.h>
5#include <asm/bios_ebda.h>
6
7void __init x86_early_init_platform_quirks(void)
8{
9 x86_platform.legacy.rtc = 1;
10
11 switch (boot_params.hdr.hardware_subarch) {
12 case X86_SUBARCH_XEN:
13 case X86_SUBARCH_LGUEST:
14 case X86_SUBARCH_INTEL_MID:
15 x86_platform.legacy.rtc = 0;
16 break;
17 }
18
19 if (x86_platform.set_legacy_features)
20 x86_platform.set_legacy_features();
21}
This page took 0.033414 seconds and 5 git commands to generate.