Remove struct CsrThread
PATCH 1/2 Remove struct CsrThread
Nobody use struct CsrThread. So, remove it.
Signed-off-by SeongJae Park <[email protected]>
--- drivers/staging/csr/csr_framework_ext_types.h | 5 ----- 1 file changed, 5 deletions(-)
drivers/staging/csr/csr_framework_ext_types.h +0 -5
@@ -24,11 +24,6 @@ extern "C" { #ifdef __KERNEL__ -struct CsrThread { - struct task_struct *thread_task; - char name[16]; -}; - struct CsrEvent { /* wait_queue for waking the kernel thread */ wait_queue_head_t wakeup_q;
Signature · 1 line
1.7.9.5
PATCH 2/2 Remove CsrThreadHandle
CsrThreadHandle is typedef of struct CsrThread. Some functions in csr_framework_ext.h use it as parameter. But, nobody call them.
Signed-off-by SeongJae Park <[email protected]>
--- drivers/staging/csr/csr_framework_ext.h | 49 ------------------------- drivers/staging/csr/csr_framework_ext_types.h | 2 - 2 files changed, 51 deletions(-)
drivers/staging/csr/csr_framework_ext.h +0 -49
@@ -181,55 +181,6 @@ void CsrGlobalMutexUnlock(void);/*----------------------------------------------------------------------------* * NAME -* CsrThreadCreate -* -* DESCRIPTION -* Create thread function and return a handle to the created thread. -* -* RETURNS -* Possible values: -* CSR_RESULT_SUCCESS in case of success -* CSR_FE_RESULT_NO_MORE_THREADS in case of out of thread resources -* CSR_FE_RESULT_INVALID_POINTER in case one of the supplied pointers is invalid -* -*----------------------------------------------------------------------------*/ -CsrResult CsrThreadCreate (void (*threadFunction)(void *pointer),void *pointer, -u32 stackSize,u16 priority, -const char *threadName,CsrThreadHandle *threadHandle); - -/*----------------------------------------------------------------------------* -* NAME -* CsrThreadGetHandle -* -* DESCRIPTION -* Return thread handle of calling thread. -* -* RETURNS -* Possible values: -* CSR_RESULT_SUCCESS in case of success -* CSR_FE_RESULT_INVALID_POINTER in case the threadHandle pointer is invalid -* -*----------------------------------------------------------------------------*/ -CsrResult CsrThreadGetHandle (CsrThreadHandle *threadHandle); - -/*----------------------------------------------------------------------------* -* NAME -* CsrThreadEqual -* -* DESCRIPTION -* Compare thread handles -* -* RETURNS -* Possible values: -* CSR_RESULT_SUCCESS in case thread handles are identical -* CSR_FE_RESULT_INVALID_POINTER in case either threadHandle pointer is invalid -* CSR_RESULT_FAILURE otherwise -* -*----------------------------------------------------------------------------*/ -CsrResult CsrThreadEqual (CsrThreadHandle *threadHandle1,CsrThreadHandle *threadHandle2); - -/*----------------------------------------------------------------------------* -* NAME * CsrThreadSleep * * DESCRIPTION
drivers/staging/csr/csr_framework_ext_types.h +0 -2
@@ -32,7 +32,6 @@ struct CsrEvent {typedef struct CsrEvent CsrEventHandle ;typedef struct semaphore CsrMutexHandle ; -typedef struct CsrThread CsrThreadHandle ;#else /* __KERNEL __ */
@@ -44,7 +43,6 @@ struct CsrEvent {typedef struct CsrEvent CsrEventHandle ;typedef pthread_mutex_t CsrMutexHandle ; -typedef pthread_t CsrThreadHandle ;#endif /* __KERNEL__ */
Signature · 1 line
1.7.9.5