• Rafael J. Wysocki's avatar
    ACPI / init: Switch over platform to the ACPI mode later · f9f58191
    Rafael J. Wysocki authored
    [ Upstream commit cdbbeb69 ]
    
    commit b064a8fa upstream.
    
    Commit 73f7d1ca "ACPI / init: Run acpi_early_init() before
    timekeeping_init()" moved the ACPI subsystem initialization,
    including the ACPI mode enabling, to an earlier point in the
    initialization sequence, to allow the timekeeping subsystem
    use ACPI early.  Unfortunately, that resulted in boot regressions
    on some systems and the early ACPI initialization was moved toward
    its original position in the kernel initialization code by commit
    c4e1acbb "ACPI / init: Invoke early ACPI initialization later".
    
    However, that turns out to be insufficient, as boot is still broken
    on the Tyan S8812 mainboard.
    
    To fix that issue, split the ACPI early initialization code into
    two pieces so the majority of it still located in acpi_early_init()
    and the part switching over the platform into the ACPI mode goes into
    a new function, acpi_subsyst...
    f9f58191
main.c 24.6 KB