lkml.org 
[lkml]   [2008]   [Jan]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] driver: ip27-rtc - convert ioctl to unlocked_ioctl
[Jiri Slaby - Mon, Jan 14, 2008 at 05:27:00PM +0100]
> On 01/14/2008 05:07 PM, Cyrill Gorcunov wrote:
>> Yes, process would be stopped, and not *just* stopped but could spend
>> all his cpu time-slice in attempt to get spinlock (espec if set time is
>> much longer than read), but if we use mutex here the process could just
>> sleep instead of trying to get spinlock granted. Am I wrong? Or this is
>> not worth to do it?
>
> I would say no. It'll spin only for nanoseconds there.
>

Thanks a lot Jiri, I'll resend improved patch.

- Cyrill -


\
 
 \ /
  Last update: 2008-01-14 17:31    [W:0.027 / U:0.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site