Re: [PATCH 1/3] acpi: Rip out EC_FLAGS_QUERY_PENDING (prevent race condition)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alexey Starikovskiy <astarikovskiy@...>
Cc: Henrique de Moraes Holschuh <hmh@...>, <linux-acpi@...>, <linux-kernel@...>
Date: Sunday, July 20, 2008 - 10:55 am

Alexey Starikovskiy wrote:

Ah, the powertop argument.  Disabling interrupts is a nice safety
blanket, but it means you end up polling the status register during
queries.  I think the interrupts are better for battery life.  The
excess interrupts happen all at once, so they don't wake the CPU up more
frequently, they just keep it awake slightly longer.

I'm convinced that emptying the EC buffer will reduce the number of
interrupts, even for the reporter of #9998.  I'll ask them to test this
patchset, then respin it to fix the mess I made of
EC_FLAGS_QUERY_PENDING.  As I mentioned earlier I've worked out how to
avoid my theoretical race without causing increased memory usage.

Thanks
Alan
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/3] acpi: Rip out EC_FLAGS_QUERY_PENDING (preven..., Alexey Starikovskiy, (Sat Jul 19, 12:59 pm)
Re: [PATCH 1/3] acpi: Rip out EC_FLAGS_QUERY_PENDING (preven..., Alexey Starikovskiy, (Sat Jul 19, 5:12 pm)
Re: [PATCH 1/3] acpi: Rip out EC_FLAGS_QUERY_PENDING (preven..., Alan Jenkins, (Sun Jul 20, 10:55 am)