tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge branch 'bugzilla-14954' into release
Len Brown
16 years ago
418521de
be6066f3
+30
1 changed file
expand all
collapse all
unified
split
drivers
acpi
processor_pdc.c
+30
drivers/acpi/processor_pdc.c
···
144
}
145
EXPORT_SYMBOL_GPL(acpi_processor_set_pdc);
146
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
147
static acpi_status
148
early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv)
149
{
···
181
* should not use mwait for CPU-states.
182
*/
183
dmi_check_system(processor_idle_dmi_table);
0
0
0
0
0
0
0
184
185
acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT,
186
ACPI_UINT32_MAX,
···
144
}
145
EXPORT_SYMBOL_GPL(acpi_processor_set_pdc);
146
147
+
static int early_pdc_optin;
148
+
static int set_early_pdc_optin(const struct dmi_system_id *id)
149
+
{
150
+
early_pdc_optin = 1;
151
+
return 0;
152
+
}
153
+
154
+
static struct dmi_system_id __cpuinitdata early_pdc_optin_table[] = {
155
+
{
156
+
set_early_pdc_optin, "HP Envy", {
157
+
DMI_MATCH(DMI_BIOS_VENDOR, "Hewlett-Packard"),
158
+
DMI_MATCH(DMI_PRODUCT_NAME, "HP Envy") }, NULL},
159
+
{
160
+
set_early_pdc_optin, "HP Pavilion dv6", {
161
+
DMI_MATCH(DMI_BIOS_VENDOR, "Hewlett-Packard"),
162
+
DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dv6") }, NULL},
163
+
{
164
+
set_early_pdc_optin, "HP Pavilion dv7", {
165
+
DMI_MATCH(DMI_BIOS_VENDOR, "Hewlett-Packard"),
166
+
DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion dv7") }, NULL},
167
+
{},
168
+
};
169
+
170
static acpi_status
171
early_init_pdc(acpi_handle handle, u32 lvl, void *context, void **rv)
172
{
···
158
* should not use mwait for CPU-states.
159
*/
160
dmi_check_system(processor_idle_dmi_table);
161
+
162
+
/*
163
+
* Allow systems to opt-in to early _PDC evaluation.
164
+
*/
165
+
dmi_check_system(early_pdc_optin_table);
166
+
if (!early_pdc_optin)
167
+
return;
168
169
acpi_walk_namespace(ACPI_TYPE_PROCESSOR, ACPI_ROOT_OBJECT,
170
ACPI_UINT32_MAX,