Kernel: Make Processor::clean_fpu_state() static

This function returns the same identical FPU state for all CPU's, so
there's no point requiring a Processor instance.
This commit is contained in:
Andreas Kling 2021-08-22 15:35:54 +02:00
commit 05e1b196e9
Notes: sideshowbarker 2024-07-18 05:37:06 +09:00
2 changed files with 2 additions and 5 deletions

View file

@ -392,10 +392,7 @@ public:
return read_gs_ptr(__builtin_offsetof(Processor, m_in_critical));
}
ALWAYS_INLINE const FPUState& clean_fpu_state() const
{
return s_clean_fpu_state;
}
ALWAYS_INLINE static FPUState const& clean_fpu_state() { return s_clean_fpu_state; }
static void smp_enable();
bool smp_process_pending_messages();