]> git.baikalelectronics.ru Git - kernel.git/commit
ARC: smp: Introduce smp hook @init_early_smp for Master core
authorVineet Gupta <vgupta@synopsys.com>
Mon, 12 Oct 2015 10:58:55 +0000 (16:28 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 28 Oct 2015 10:43:40 +0000 (16:13 +0530)
commite8fbff4a949ba308d33a63d75deba14d6b7afec5
treedcd0c632606005ec87ffa24fa2414040fce1cfa0
parentabc5cc3516438e24496eef930f2e707cd0c0b5ff
ARC: smp: Introduce smp hook @init_early_smp for Master core

This adds a platform agnostic early SMP init hook which is called on
Master core before calling setup_processor()

  setup_arch()
     smp_init_cpus()
         smp_ops.init_early_smp()
     ...
     setup_processor()

How this helps:
 - Used for one time init of certain SMP centric IP blocks, before
   calling setup_processor() which probes various bits of core,
   possibly including this block

 - Currently platforms need to call this IP block init from their
   init routines, which doesn't make sense as this is specific to ARC
   core and not platform and otherwise requires copy/paste in all
   (and hence a possible point of failure)

e.g. MCIP init is called from 2 platforms currently (axs10x and sim)
which will go away once we have this.

This change only adds the hooks but they are empty for now. Next commit
will populate them and remove the explicit init calls from platforms.

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/smp.h
arch/arc/kernel/setup.c
arch/arc/kernel/smp.c