Juan Lang juan.lang@gmail.com writes:
+static void set_process_affinity( struct process *process, affinity_t affinity ) +{
- struct thread *thread;
 - process->affinity = affinity;
 - suspend_process( process );
 - LIST_FOR_EACH_ENTRY( thread, &process->thread_list, struct thread, proc_entry )
 - {
 set_thread_affinity( thread, affinity );- }
 - resume_process( process );
 
Why are you suspending the process?