Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39c04b55 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Ingo Molnar
Browse files

x86: make sure we really have an hpet mapping before using it



Impact: prepare the hpet code for Xen dom0 booting

When booting in Xen dom0, the hpet isn't really accessible, so make
sure the mapping is non-NULL before use.

Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent bacbe999
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -834,9 +834,10 @@ static __init int hpet_late_init(void)

		hpet_address = force_hpet_address;
		hpet_enable();
	}

	if (!hpet_virt_address)
		return -ENODEV;
	}

	hpet_reserve_platform_timers(hpet_readl(HPET_ID));