Re: [discuss] [OOPS] powernow on smp dual core amd64

Andi Kleen
2005-06-10T20:01:57Z

On Fri, Jun 10, 2005 at 02:48:58PM -0500, Langsdorf, Mark wrote:
> It looks like the crash is caused by an invalid
> pointer dereference in
> query_current_values_with_pending_wait(), which
> implies that powernowk8_get() was called with an
> invalid CPU number.
>
> Andi, what will happen if you do
> set_cpus_allowed(current, cpumask_of_cpu(cpu)) when
> cpu isn't in the range of online CPUs? There's

It just returns with -EINVAL.

Also it really shouldnt happen.

> supposed to be a check to prevent an invalid
> pointer access from happening but it's failing for
> some reason.
-Andi