forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jailhouse exposes the PMTIMER as only reference clock to all cells. Pick up its address from the setup data. Allow to enable the Linux support of it by relaxing its strict dependency on ACPI. Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lkml.kernel.org/r/6d5c3fadd801eb3fba9510e2d3db14a9c404a1a0.1511770314.git.jan.kiszka@siemens.com
- Loading branch information
1 parent
11c8dc4
commit 87e65d0
Showing
3 changed files
with
21 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
* Jan Kiszka <[email protected]> | ||
*/ | ||
|
||
#include <linux/acpi_pmtmr.h> | ||
#include <linux/kernel.h> | ||
#include <asm/apic.h> | ||
#include <asm/cpu.h> | ||
|
@@ -91,6 +92,9 @@ static void __init jailhouse_init_platform(void) | |
|
||
if (setup_data.compatible_version > JAILHOUSE_SETUP_REQUIRED_VERSION) | ||
panic("Jailhouse: Unsupported setup data structure"); | ||
|
||
pmtmr_ioport = setup_data.pm_timer_address; | ||
pr_debug("Jailhouse: PM-Timer IO Port: %#x\n", pmtmr_ioport); | ||
} | ||
|
||
bool jailhouse_paravirt(void) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters