diff options
Diffstat (limited to 'cpukit/posix/src')
-rw-r--r-- | cpukit/posix/src/pthreadgetaffinitynp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cpukit/posix/src/pthreadgetaffinitynp.c b/cpukit/posix/src/pthreadgetaffinitynp.c index b904aea36c..f30ae54c2a 100644 --- a/cpukit/posix/src/pthreadgetaffinitynp.c +++ b/cpukit/posix/src/pthreadgetaffinitynp.c @@ -38,7 +38,6 @@ int pthread_getaffinity_np( { Thread_Control *the_thread; ISR_lock_Context lock_context; - Per_CPU_Control *cpu_self; Status_Control status; if ( cpuset == NULL ) { @@ -51,7 +50,6 @@ int pthread_getaffinity_np( return ESRCH; } - cpu_self = _Thread_Dispatch_disable_critical( &lock_context ); _Thread_State_acquire_critical( the_thread, &lock_context ); status = _Scheduler_Get_affinity( @@ -61,7 +59,6 @@ int pthread_getaffinity_np( ); _Thread_State_release( the_thread, &lock_context ); - _Thread_Dispatch_enable( cpu_self ); return _POSIX_Get_error( status ); } |