maru-tablet: fix unexpected shutdown issue
authorJinhyung Jo <jinhyung.jo@samsung.com>
Thu, 3 Mar 2016 09:07:02 +0000 (18:07 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 8 Mar 2016 06:06:55 +0000 (15:06 +0900)
commit2e85b60622c9efb59f7f755a99c8a17afe637fc0
treec95b7851eda0d8c9df13e0fa35d5b1710d475701
parenta3a912add02087e6a65f5e80bd336de514a21ab4
maru-tablet: fix unexpected shutdown issue

If a user uses this device to hard, the emulator dies unexpectedly.
Its reason is to use the virtio queue.
The tablet device accesses the queue that is not prepared
and then releases it.
Fix the issue and refactoring the code.
 - improve the use of the virtio queue
 - remove unused structure & variables
 - pthread mutex to qemu mutex
 - remove unnecessary function declaration
 - clean up logs.

Change-Id: I8adfd2e89c88185547333a45462eceaa1f061c5b
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
tizen/src/hw/virtio/maru_virtio_tablet.c
tizen/src/hw/virtio/maru_virtio_tablet.h