RE: [PATCH 1/5] rapidio: fix blocking wait for discovery ready

2012-10-04 Thread Bounine, Alexandre
On Wed, October 03, 2012 6:20 PM Andrew Morton wrote: > > On Wed, 3 Oct 2012 15:18:39 -0400 > Alexandre Bounine wrote: > > > Fix blocking wait loop in the RapidIO discovery routine to avoid > > warning dumps about stalled CPU on x86 platforms. > > > > ... > > > > + to_end = jiffies +

Re: [PATCH 1/5] rapidio: fix blocking wait for discovery ready

2012-10-03 Thread Andrew Morton
On Wed, 3 Oct 2012 15:18:39 -0400 Alexandre Bounine 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(jif