lkml.org 
[lkml]   [2015]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/1] x86/cpu: don't allocate fpu->state for swapper/0
On Fri, Mar 13, 2015 at 07:26:56PM +0100, Oleg Nesterov wrote:
> Hello.
>
> This patch is "out of order" a bit, but since Borislav mentioned this
> during review...
>
> And I was going to send the 2nd one (below), but it turns out that
> __init_refok is not discarded? So is there any way to do
>
> void __init init_function();
>
> void non_init_func()
> {
> if (can_only_be_true_before_free_initmem)
> init_function();
> }
>
> and avoid the warning?

Actually, I was wondering if we could be even more radical and do
the boot cpu-specific stuff only in the BSP boot path. For example,
somewhere down that path:

start_kernel
|-> check_bugs
|-> check_fpu --- btw, we do FPU stuff here already too
|-> xstate_enable_boot_cpu

instead of this state machine with function pointers hackery.

I'll try to play with this and see whether something breaks.

Thanks.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--


\
 
 \ /
  Last update: 2015-03-14 12:41    [W:0.226 / U:0.708 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site