[PATCH] APM patch for idle_period handling

Stephen Rothwell (sfr@canb.auug.org.au)
Fri, 31 May 2002 10:16:52 +1000


Hi Marcelo, Linus,

This patch from Laurent Latil <laurent@latil.nom.fr> fixes a copy
and paste error. The patch applies to 2.4.19-pre9 and 2.5.19 (with
some offsets).

Please apply.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

--- linux-2.4.18/arch/i386/kernel/apm.c Mon Apr 1 12:12:48 2002 +++ linux/arch/i386/kernel/apm.c Wed May 22 20:51:35 2002 @@ -1788,7 +1788,7 @@ idle_threshold = simple_strtol(str + 15, NULL, 0); if ((strncmp(str, "idle-period=", 12) == 0) || (strncmp(str, "idle_period=", 12) == 0)) - idle_threshold = simple_strtol(str + 15, NULL, 0); + idle_period = simple_strtol(str + 12, NULL, 0); invert = (strncmp(str, "no-", 3) == 0) || (strncmp(str, "no_", 3) == 0); if (invert) - 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/