• L
    ACPI / EC: Remove irqs_disabled() check. · 373783e6
    Lv Zheng 提交于
    The following commit merges polling and interrupt modes for EC driver:
      Commit: 2a84cb98 Mon Sep 17 00:00:00 2001
      Subject: ACPI: EC: Merge IRQ and POLL modes
    The irqs_disabled() check introduced in it tries to fall into busy polling
    mode when the context of ec_poll() cannot sleep.
    
    Actually ec_poll() is ensured to be invoked in the contexts that can sleep
    (from a sysfs /sys/kernel/debug/ec/ec0/io access, or from
    acpi_evaluate_object(), or from acpi_ec_gpe_poller()). Without the MSI
    quirk, we never saw the udelay() logic invoked. Thus this check is useless
    and can be removed.
    Signed-off-by: NLv Zheng <lv.zheng@intel.com>
    Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
    373783e6
ec.c 38.0 KB