diff options
Diffstat (limited to 'recipes-kernel/rs9113/rs9113-1.3.0/kthread.patch')
-rw-r--r-- | recipes-kernel/rs9113/rs9113-1.3.0/kthread.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes-kernel/rs9113/rs9113-1.3.0/kthread.patch b/recipes-kernel/rs9113/rs9113-1.3.0/kthread.patch new file mode 100644 index 0000000..f802c38 --- /dev/null +++ b/recipes-kernel/rs9113/rs9113-1.3.0/kthread.patch @@ -0,0 +1,34 @@ +diff -ruPN old/source/host/common_hal/osd/linux/onebox_thread.c new/source/host/common_hal/osd/linux/onebox_thread.c +--- old/source/host/common_hal/osd/linux/onebox_thread.c 2016-08-03 10:15:47.000000000 -0500 ++++ new/source/host/common_hal/osd/linux/onebox_thread.c 2016-08-03 12:10:00.000000000 -0500 +@@ -99,11 +99,12 @@ + atomic_inc(&handle->thread_done); + ONEBOX_DEBUG(ONEBOX_ZONE_INFO,(TEXT("In %s Before setting event\n"),__func__)); + rsi_set_event(&handle->thread_event); +- wait_for_completion(&handle->thread_complete); ++ //wait_for_completion(&handle->thread_complete); + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) + //handle->thread_id = NULL; + kthread_stop(handle->thread_id); + #else ++ wait_for_completion(&handle->thread_complete); + handle->thread_id = 0; + #endif + #endif +diff -ruPN old/source/host/wlan/wlan_hal/osd_wlan/linux/onebox_wlan_osd_ops.c new/source/host/wlan/wlan_hal/osd_wlan/linux/onebox_wlan_osd_ops.c +--- old/source/host/wlan/wlan_hal/osd_wlan/linux/onebox_wlan_osd_ops.c 2016-08-03 10:15:48.000000000 -0500 ++++ new/source/host/wlan/wlan_hal/osd_wlan/linux/onebox_wlan_osd_ops.c 2016-08-03 12:10:00.000000000 -0500 +@@ -244,11 +244,12 @@ + atomic_inc(&w_adapter->txThreadDone); + ONEBOX_DEBUG(ONEBOX_ZONE_INFO,(TEXT("In %s Before setting event\n"),__func__)); + os_intf_ops->onebox_set_event(&(w_adapter->sdio_scheduler_event)); +- wait_for_completion(&w_adapter->txThreadComplete); ++ //wait_for_completion(&w_adapter->txThreadComplete); + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39) + //handle->thread_id = NULL; + kthread_stop(handle->thread_id); + #else ++ wait_for_completion(&w_adapter->txThreadComplete); + handle->thread_id = 0; + #endif + return ONEBOX_STATUS_SUCCESS; |