}
#ifdef CONFIG_ACPI_CUSTOM_DSDT_INITRD
-- struct acpi_table_header *acpi_find_dsdt_initrd(void)
++ static struct acpi_table_header *acpi_find_dsdt_initrd(void)
{
struct file *firmware_file;
mm_segment_t oldfs;
}
#ifdef CONFIG_ACPI_CUSTOM_DSDT_INITRD
-- int __init acpi_no_initrd_override_setup(char *s)
++ static int __init acpi_no_initrd_override_setup(char *s)
{
acpi_no_initrd_override = 1;
return 1;
* string starting with '!' disables that string
* otherwise string is added to list, augmenting built-in strings
*/
--static int __init acpi_osi_setup(char *str)
++int __init acpi_osi_setup(char *str)
{
if (str == NULL || *str == '\0') {
printk(KERN_INFO PREFIX "_OSI method disabled\n");
* Otherwise, ignore this info and continue.
*/
cx.entry_method = ACPI_CSTATE_HALT;
+ + snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI HLT");
} else {
continue;
}
+ + } else {
+ + snprintf(cx.desc, ACPI_CX_DESC_LEN, "ACPI IOPORT 0x%x",
+ + cx.address);
}
+ +
obj = &(element->package.elements[2]);
if (obj->type != ACPI_TYPE_INTEGER)
continue;
return 0;
local_irq_disable();
++
++ /* Do not access any ACPI IO ports in suspend path */
++ if (acpi_idle_suspend) {
++ acpi_safe_halt();
++ local_irq_enable();
++ return 0;
++ }
++
if (pr->flags.bm_check)
acpi_idle_update_bm_rld(pr, cx);
return -EINVAL;
}
+ + for (i = 0; i < CPUIDLE_STATE_MAX; i++) {
+ + dev->states[i].name[0] = '\0';
+ + dev->states[i].desc[0] = '\0';
+ + }
+ +
for (i = 1; i < ACPI_PROCESSOR_MAX_POWER && i <= max_cstate; i++) {
cx = &pr->power.states[i];
state = &dev->states[count];
cpuidle_set_statedata(state, cx);
snprintf(state->name, CPUIDLE_NAME_LEN, "C%d", i);
+ + strncpy(state->desc, cx->desc, CPUIDLE_DESC_LEN);
state->exit_latency = cx->latency;
state->target_residency = cx->latency * latency_factor;
state->power_usage = cx->power;