Commit 56ceb3c8 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Greg Kroah-Hartman

[PATCH] PCI Hotplug: ibmphp_core: replace long_delay() with msleep()

Replace long_delay() with msleep() to guarantee the task
delays as desired.
Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent ae832a84
......@@ -190,7 +190,7 @@ static inline int power_on (struct slot *slot_cur)
err ("command not completed successfully in power_on\n");
return -EIO;
}
long_delay (3 * HZ); /* For ServeRAID cards, and some 66 PCI */
msleep(3000); /* For ServeRAID cards, and some 66 PCI */
return 0;
}
......@@ -913,7 +913,7 @@ static int set_bus (struct slot * slot_cur)
}
/* This is for x440, once Brandon fixes the firmware,
will not need this delay */
long_delay (1 * HZ);
msleep(1000);
debug ("%s -Exit\n", __FUNCTION__);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment