Thread (12 messages) flat view 12 messages, 2 authors, 2012-10-04

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

From: Bounine, Alexandre <hidden>
Date: 2012-10-04 17:20:40
Also in: lkml

On Wed, October 03, 2012 6:20 PM
Andrew Morton [off-list ref] wrote:
=20
On Wed,  3 Oct 2012 15:18:39 -0400
Alexandre Bounine [off-list ref] wrote:
=20
quoted
Fix blocking wait loop in the RapidIO discovery routine to avoid
warning dumps about stalled CPU on x86 platforms.

...

+		to_end =3D 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));
=20
I think a simple msleep(10) would suffice here?
=20
Agree, same thing but looks simpler. Will update.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help