Re: [PATCH 4/8] x86/fpu: Remove the thread::fpu pointer

From: Ingo Molnar
Date: Thu Apr 10 2025 - 06:51:44 EST



* Ingo Molnar <mingo@xxxxxxxxxx> wrote:

> BTW., Oleg suggested in a previous discussion for us to replace the
> task->thread.fpu pointer with a build-time calculation - but I'm
> still not sure it's a good idea.

Actually, I've implemented that already:

arch/x86/include/asm/processor.h:# define x86_task_fpu(task) ((struct fpu *)((void *)(task) + sizeof(*(task))))

... then promptly forgot about it. So never mind me. :-)

Thanks,

Ingo