]> code.ossystems Code Review - openembedded-core.git/commitdiff
poky-qemu-internal: force oprofile into using timer interrupt mode for qemux86/qemux8...
authorDexuan Cui <dexuan.cui@intel.com>
Mon, 14 Mar 2011 08:52:37 +0000 (16:52 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Mar 2011 20:59:55 +0000 (20:59 +0000)
Currently oprofile's event based interrupt mode doesn't work(Bug #828) in
qemux86 and qemux86-64. We can use timer interrupt mode for now.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
scripts/poky-qemu-internal

index 3638a65a8e1d566491ca3cb804e0c396e1564f7b..046e2b6e04b5485f484b91dc841a668fb0efdc7a 100755 (executable)
@@ -309,6 +309,9 @@ if [ "$MACHINE" = "qemux86" ]; then
         KERNCMDLINE="root=/dev/nfs nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
         QEMUOPTIONS="$QEMU_NETWORK_CMD $QEMU_UI_OPTIONS"
     fi
+    # Currently oprofile's event based interrupt mode doesn't work(Bug #828) in
+    # qemux86 and qemux86-64. We can use timer interrupt mode for now.
+    KERNCMDLINE="$KERNCMDLINE oprofile.timer=1"
 fi
 
 if [ "$MACHINE" = "qemux86-64" ]; then
@@ -330,6 +333,9 @@ if [ "$MACHINE" = "qemux86-64" ]; then
         KERNCMDLINE="root=/dev/nfs nfsroot=$NFS_SERVER:$NFS_DIR,$UNFS_OPTS rw $KERNEL_NETWORK_CMD mem=$QEMU_MEMORY"
         QEMUOPTIONS="$QEMU_NETWORK_CMD $QEMU_UI_OPTIONS"
     fi
+    # Currently oprofile's event based interrupt mode doesn't work(Bug #828) in
+    # qemux86 and qemux86-64. We can use timer interrupt mode for now.
+    KERNCMDLINE="$KERNCMDLINE oprofile.timer=1"
 fi
 
 if [ "$MACHINE" = "spitz" ]; then