Author: tqh Date: 2010-05-01 09:59:48 +0200 (Sat, 01 May 2010) New Revision: 36565 Changeset: http://dev.haiku-os.org/changeset/36565/haiku Ticket: http://dev.haiku-os.org/ticket/5861 Modified: haiku/trunk/src/add-ons/kernel/bus_managers/acpi/acpi_embedded_controller.cpp Log: Use polling in embedded controller while booting. Might fix #5861. Is this usage of the flag ok? Modified: haiku/trunk/src/add-ons/kernel/bus_managers/acpi/acpi_embedded_controller.cpp =================================================================== --- haiku/trunk/src/add-ons/kernel/bus_managers/acpi/acpi_embedded_controller.cpp 2010-05-01 05:16:19 UTC (rev 36564) +++ haiku/trunk/src/add-ons/kernel/bus_managers/acpi/acpi_embedded_controller.cpp 2010-05-01 07:59:48 UTC (rev 36565) @@ -30,6 +30,7 @@ #include "acpi_embedded_controller.h" +#include <kernel.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -671,7 +672,7 @@ int32 count, i; // int need_poll = cold || rebooting || ec_polled_mode || sc->ec_suspending; - int needPoll = ec_polled_mode || sc->ec_suspending; + int needPoll = ec_polled_mode || sc->ec_suspending || gKernelStartup; // The main CPU should be much faster than the EC. So the status should // be "not ready" when we start waiting. But if the main CPU is really