RE: [PATCH] SN2 user-MMIO CPU migration

From: Chen, Kenneth W <kenneth.w.chen_at_intel.com>
Date: 2006-01-25 20:24:54
Brent Casavant wrote on Tuesday, January 24, 2006 3:29 PM
> Take 4.  Moved "really migrated?" check as late as possible in
> __switch_task(), and moved thread_info last_cpu field closer to
> flags and cpu fields.  Some nomenclature changes as well.

diff --git a/include/asm-ia64/system.h b/include/asm-ia64/system.h
>  #define __switch_to(prev,next,last) do {							 \
>  	if (IA64_HAS_EXTRA_STATE(prev))								 \
>  		ia64_save_extra(prev);								 \
>  	if (IA64_HAS_EXTRA_STATE(next))								 \
>  		ia64_load_extra(next);								 \
>  	ia64_psr(task_pt_regs(next))->dfh = !ia64_is_local_fpu_owner(next);			 \
> +	arch_migrate(next);									 \
>  	(last) = ia64_switch_to((next));							 \
>  } while (0)

Thought everyone agreed to call the sync function with the new task context,
(after ia64_switch_to). Something changed which made you changed your mind?

 
diff --git a/include/asm-ia64/thread_info.h b/include/asm-ia64/thread_info.h
> @@ -46,6 +47,7 @@ struct thread_info {
>  	.exec_domain	= &default_exec_domain,	\
>  	.flags		= 0,			\
>  	.cpu		= 0,			\
> +	.last_cpu	= 0,			\
>  	.addr_limit	= KERNEL_DS,		\
>  	.preempt_count	= 0,			\
>  	.restart_block = {			\

Looked spurious, init_task has static initializer, which will have zero
initial value automatically.

- Ken

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 25 20:25:40 2006

This archive was generated by hypermail 2.1.8 : 2006-01-25 20:25:49 EST