[PMQA] cpuhotplug: give time for udevadm to start

Message ID 1382431493-5474-1-git-send-email-sanjay.rawat@linaro.org
State New
Headers show

Commit Message

Sanjay Singh Rawat Oct. 22, 2013, 8:44 a.m.
- on calxeda we are missing some events because udevadm needs
  sometime to launch
- bug : https://bugs.launchpad.net/bugs/1230403

Signed-off-by: Sanjay Singh Rawat <sanjay.rawat@linaro.org>
---
 cpuhotplug/cpuhotplug_07.sh |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/cpuhotplug/cpuhotplug_07.sh b/cpuhotplug/cpuhotplug_07.sh
index d9d8706..1ad9445 100755
--- a/cpuhotplug/cpuhotplug_07.sh
+++ b/cpuhotplug/cpuhotplug_07.sh
@@ -42,6 +42,8 @@  check_notification() {
     # to retrieve the output
     rm -f $TMPFILE
     udevadm monitor --kernel --subsystem-match=cpu > $TMPFILE &
+    # give sometime for udevadm to start, otherwise we may miss some events
+    sleep 1
     pid=$!
 
     set_offline $cpu