Re: [PATCH] x86/fpu: Unify the naming of the FPU register cache validity flags

From: Peter Zijlstra
Date: Thu Jan 26 2017 - 10:32:09 EST


On Thu, Jan 26, 2017 at 04:05:25PM +0100, Ingo Molnar wrote:
> diff --git a/arch/x86/include/asm/switch_to.h b/arch/x86/include/asm/switch_to.h
> index a7146dadb31d..7a4915dd0547 100644
> --- a/arch/x86/include/asm/switch_to.h
> +++ b/arch/x86/include/asm/switch_to.h
> @@ -78,7 +78,7 @@ do { \
> */
> static inline void arch_task_migrate(struct task_struct *p)
> {
> - p->thread.fpu.fpregs_cached = 0;
> + p->thread.fpu.fpregs_owner = 0;
> }
> #define arch_task_migrate arch_task_migrate

I still really dislike having this callback..