[lkml]   [2005]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] acpi-cpufreq: Remove P-state read after a P-state write in normal path

On Fri, Aug 26, 2005 at 05:10:52PM -0700, Venkatesh Pallipadi wrote:
> /*
> - * Then we read the 'status_register' and compare the value with the
> - * target state's 'status' to make sure the transition was successful.
> - * Note that we'll poll for up to 1ms (100 cycles of 10us) before
> - * giving up.
> + * Assume the write went through when acpi_pstate_strict is not used.
> + * As read status_register is an expensive operation and there
> + * are no specific error cases where an IO port write will fail.
> */

Well, the IO port write itself might not fail, but the transition itself --
and we're reading the _status_ register here, not the control register where
we've written to. And of ACPI-sepc 3.0 does specifically mention
that transitions _can_ fail, so I think we should handle this possibility.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-08-28 20:13    [W:0.040 / U:11.080 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site