lkml.org 
[lkml]   [2012]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH 1/5] rapidio: fix blocking wait for discovery ready
Date
On Wed, October 03, 2012 6:20 PM
Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Wed, 3 Oct 2012 15:18:39 -0400
> Alexandre Bounine <alexandre.bounine@idt.com> wrote:
>
> > Fix blocking wait loop in the RapidIO discovery routine to avoid
> > warning dumps about stalled CPU on x86 platforms.
> >
> > ...
> >
> > + to_end = jiffies + CONFIG_RAPIDIO_DISC_TIMEOUT * HZ;
> > + while (time_before(jiffies, to_end)) {
> > + if (rio_enum_complete(mport))
> > + goto enum_done;
> > +
> schedule_timeout_uninterruptible(msecs_to_jiffies(10));
>
> I think a simple msleep(10) would suffice here?
>
Agree, same thing but looks simpler. Will update.


\
 
 \ /
  Last update: 2012-10-04 20:01    [W:0.171 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site