summaryrefslogtreecommitdiff
path: root/drivers/staging/wilc1000/host_interface.h
diff options
context:
space:
mode:
authorAlison Schofield <amsfield22@gmail.com>2016-03-14 17:34:14 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-28 14:30:36 (GMT)
commite0c1496fcf6a1bbc9b827e763f58535585b249d5 (patch)
treefd262f6c2226cfe8d3f692097af3942696b1f218 /drivers/staging/wilc1000/host_interface.h
parent1b7c69e84bcea7a8054b44e6671e7b9ad758c2d8 (diff)
downloadlinux-e0c1496fcf6a1bbc9b827e763f58535585b249d5.tar.xz
staging: wilc1000: replace semaphore sem_inactive_time with a completion
Semaphore sem_inactive_time is used to signal completion of its host interface message. Since the thread locking this semaphore will have to wait, completions are the preferred mechanism and will offer a performance improvement. Signed-off-by: Alison Schofield <amsfield22@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Tested-by: Leo Kim <leo.kim@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/host_interface.h')
-rw-r--r--drivers/staging/wilc1000/host_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.h b/drivers/staging/wilc1000/host_interface.h
index 01f3222..68852b3 100644
--- a/drivers/staging/wilc1000/host_interface.h
+++ b/drivers/staging/wilc1000/host_interface.h
@@ -278,7 +278,7 @@ struct host_if_drv {
struct semaphore sem_test_key_block;
struct semaphore sem_test_disconn_block;
struct semaphore sem_get_rssi;
- struct semaphore sem_inactive_time;
+ struct completion comp_inactive_time;
struct timer_list scan_timer;
struct timer_list connect_timer;