[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Vcpu hotplug: Move ACPI processor from \_PR to \_SB
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1266221606 0 # Node ID 54c09c71fe475182e2a61426f4bb5d7e72f9be2b # Parent 3bb163b7467362e1d39eaf44365e54c0cbfad927 Vcpu hotplug: Move ACPI processor from \_PR to \_SB Move processor from \_PR to \_SB. ACPI processor can be defined under \_PR or \_SB. However, recently os like linux 2.6.30/32 support cpu hotplug better for \_SB processor object. Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx> Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx> Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/firmware/hvmloader/acpi/mk_dsdt.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff -r 3bb163b74673 -r 54c09c71fe47 tools/firmware/hvmloader/acpi/mk_dsdt.c --- a/tools/firmware/hvmloader/acpi/mk_dsdt.c Fri Feb 12 09:24:18 2010 +0000 +++ b/tools/firmware/hvmloader/acpi/mk_dsdt.c Mon Feb 15 08:13:26 2010 +0000 @@ -83,7 +83,7 @@ int main(int argc, char **argv) indent_level++; /**** Processor start ****/ - push_block("Scope", "\\_PR"); + push_block("Scope", "\\_SB"); /* MADT checksum */ stmt("OperationRegion", "MSUM, SystemMemory, \\_SB.MSUA, 1"); @@ -120,7 +120,7 @@ int main(int argc, char **argv) stmt("Return", "0xF"); pop_block(); push_block("Else", NULL); - stmt("Return", "0x9"); + stmt("Return", "0x0"); pop_block(); pop_block(); @@ -150,16 +150,16 @@ int main(int argc, char **argv) /* Extract current CPU's status: 0=offline; 1=online. */ stmt("And", "Local1, 1, Local2"); /* Check if status is up-to-date in the relevant MADT LAPIC entry... */ - push_block("If", "LNotEqual(Local2, \\_PR.PR%02X.FLG)", cpu); + push_block("If", "LNotEqual(Local2, \\_SB.PR%02X.FLG)", cpu); /* ...If not, update it and the MADT checksum, and notify OSPM. */ - stmt("Store", "Local2, \\_PR.PR%02X.FLG", cpu); + stmt("Store", "Local2, \\_SB.PR%02X.FLG", cpu); push_block("If", "LEqual(Local2, 1)"); stmt("Notify", "PR%02X, 1", cpu); /* Notify: Device Check */ - stmt("Subtract", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */ + stmt("Subtract", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */ pop_block(); push_block("Else", NULL); stmt("Notify", "PR%02X, 3", cpu); /* Notify: Eject Request */ - stmt("Add", "\\_PR.MSU, 1, \\_PR.MSU"); /* Adjust MADT csum */ + stmt("Add", "\\_SB.MSU, 1, \\_SB.MSU"); /* Adjust MADT csum */ pop_block(); pop_block(); } @@ -171,7 +171,7 @@ int main(int argc, char **argv) /* Define GPE control method '_L02'. */ push_block("Scope", "\\_GPE"); push_block("Method", "_L02"); - stmt("Return", "\\_PR.PRSC()"); + stmt("Return", "\\_SB.PRSC()"); pop_block(); pop_block(); /**** Processor end ****/ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |