Re: [RFC] Large scale kernel performance recording

Keith Owens (kaos@melbourne.sgi.com)
Thu, 29 Mar 2001 02:16:56 +1000


Sigh. Why do you always spot the typos *after* pressing send?

On Thu, 29 Mar 2001 00:07:02 +1000,
Keith Owens <kaos@ocs3.ocs-net> wrote:
> copy_desired_counter_values()
> {
> volatile int *p_flag = /* address of flag for desired cpu */;
> volatile __s64 *p_counter = /* address of counter for desired cpu and instance */;
> __s64 counter; /* local copy */
>
> do {
> counter = *p_counter;
> } while (!*p_flag && counter == *p_counter);
> }

Should be while (*p_flag || counter != *p_counter);

-
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/