Re: [patch 2.6.27-rc4] rtc-cmos: wakes again from S5

From: Andrew Morton
Date: Thu Aug 28 2008 - 20:22:31 EST


On Thu, 28 Aug 2008 11:29:35 -0700
David Brownell <david-b@xxxxxxxxxxx> wrote:

> + if (system_state == SYSTEM_POWER_OFF && !cmos_poweroff(pdev))

erp, system_state is a pretty horrid thing. It's a global with
relatively poorly defined transition conditions which have actually
changed over time.

It was not my greatest ever idea. It was simple and expedient at the
time and expanded use of it was "discouraged" (rofl).

Is there no alternative?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/