Ingo Molnar wrote:
* Michal Schmidt <[email protected]> wrote:
I'm attaching a patch which changes a semaphore in cpufreq into a
completion. With this patch, my system runs OK even with cpufreqd.
btw., could you please submit this upstream too, so that it doesnt get
lost? Semaphore->completion conversions are desirable upstream for cases
where the semaphore was in reality not used for mutual exclusion but for
completion purposes. (in which case real completions are both more
readable and slightly faster)
Yes, I'm going to contact upstream about this.
However, after closer look on cpufreq code I came to a conclusion that
the lock there doesn't really play the role of a completion. There's
always: down(), then do something with the data structure, then up() in
the same function.
I'm going to fix it differently after consulting with upstream author (I
now think that it should not be necessary to take the lock in
cpufreq_add_dev at all).
Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]