Prarit Bhargava wrote on Thursday, January 26, 2006 3:44 PM > diff --git a/include/asm-ia64/processor.h b/include/asm-ia64/processor.h > --- a/include/asm-ia64/processor.h > +++ b/include/asm-ia64/processor.h > @@ -50,7 +50,8 @@ > #define IA64_THREAD_PM_VALID (__IA64_UL(1) << 2) /* performance registers valid? */ > #define IA64_THREAD_UAC_NOPRINT (__IA64_UL(1) << 3) /* don't log unaligned accesses */ > #define IA64_THREAD_UAC_SIGBUS (__IA64_UL(1) << 4) /* generate SIGBUS on unaligned acc. */ > - /* bit 5 is currently unused */ > +#define IA64_THREAD_MIGRATION (__IA64_UL(1) << 5) /* require migration > + sync at ctx sw */ > #define IA64_THREAD_FPEMU_NOPRINT (__IA64_UL(1) << 6) /* don't log any fpswa faults */ > #define IA64_THREAD_FPEMU_SIGFPE (__IA64_UL(1) << 7) /* send a SIGFPE for fpswa faults */ > > diff --git a/include/asm-ia64/system.h b/include/asm-ia64/system.h > --- a/include/asm-ia64/system.h > +++ b/include/asm-ia64/system.h > @@ -244,6 +244,13 @@ extern void ia64_load_extra (struct task > __ia64_save_fpu((prev)->thread.fph); \ > } \ > __switch_to(prev, next, last); \ > + /* "next" in old context is "current" in new context */ \ > + if (unlikely((current->thread.flags & IA64_THREAD_MIGRATION) && \ > + (task_cpu(current) != \ > + task_thread_info(current)->last_cpu))) { \ > + platform_migrate(current); \ > + task_thread_info(current)->last_cpu = task_cpu(current); \ > + } \ > } while (0) > #else > # define switch_to(prev,next,last) __switch_to(prev, next, last) 80-column religious sometime is just pure annoying. I personally find this looked worse than having the lines spilled over 80 column, in these two particular instances. - 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.htmlReceived on Fri Jan 27 11:09:00 2006
This archive was generated by hypermail 2.1.8 : 2006-01-27 11:09:09 EST