Some ACPI implementations don't like to see full paths within a scope for
CPU power management, so don't add the scope name Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4843 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
dd3e82ab46
commit
105bace68d
|
@ -62,10 +62,9 @@ int get_fsb(void)
|
|||
|
||||
void generate_cpu_entries(void)
|
||||
{
|
||||
int len_sc, len_pr, len_ps;
|
||||
int len_pr, len_ps;
|
||||
int coreID, cpuID, pcontrol_blk=0x510, plen=6;
|
||||
msr_t msr;
|
||||
len_sc = acpigen_write_scope("\\_PR_");
|
||||
int totalcores = determine_total_number_of_cores();
|
||||
int cores_per_package = (cpuid_ebx(1)>>16) & 0xff;
|
||||
int numcpus = totalcores/cores_per_package; // this assumes that all CPUs share the same layout
|
||||
|
@ -129,9 +128,7 @@ void generate_cpu_entries(void)
|
|||
len_pr += len_ps;
|
||||
len_pr--;
|
||||
acpigen_patch_len(len_pr);
|
||||
len_sc += len_pr;
|
||||
}
|
||||
}
|
||||
acpigen_patch_len(len_sc-1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue