Re: [PATCH] 2.5.4-pre6 apm compile fix

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sun Feb 10 2002 - 22:02:35 EST


>
> I believe this had already been applied in earlier 2.5 and then somehow
> vanished, probably due to an update by whoever maintains apm.c

Doubt it - the 2.4.18pre tree uses a much more uptodate APM code set that
removes the rather broken system_idle check for a new algorithm (and
adds 20% to my typical battery lifetime!). Probably its another thing that
really wants porting forward.

I think its from scheduling changes.

> -#define system_idle() (nr_running == 1)
> +#define system_idle() (nr_running() == 1)

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



This archive was generated by hypermail 2b29 : Fri Feb 15 2002 - 21:00:35 EST