changeset 3933:511e79e2ba7f

mutek/startup: added mutekh_startup_devready
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Fri, 18 May 2018 13:37:17 +0200
parents e4afd3faf339
children 27a3c7766ed8
files libdevice/driver.c mutek/include/mutek/startup.h mutek/mutek.config mutek/startup.c
diffstat 4 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libdevice/driver.c	Fri May 18 13:35:30 2018 +0200
+++ b/libdevice/driver.c	Fri May 18 13:37:17 2018 +0200
@@ -449,7 +449,7 @@
 #endif
       )
     {
-      INIT_DEVREADY_INIT();
+      mutekh_startup_devready();
       device_init_pass = 2;
       order_smp_write();
     }
--- a/mutek/include/mutek/startup.h	Fri May 18 13:35:30 2018 +0200
+++ b/mutek/include/mutek/startup.h	Fri May 18 13:37:17 2018 +0200
@@ -53,6 +53,8 @@
     initializations of the @ref #INIT_SMP group. */
 void mutekh_startup_smp(void);
 
+void mutekh_startup_devready(void);
+
 #ifdef CONFIG_ARCH_SMP
 /** Spin barrier which can be used to synchronize processors when
     performing intializations of the @ref #INIT_SMP group. */
--- a/mutek/mutek.config	Fri May 18 13:35:30 2018 +0200
+++ b/mutek/mutek.config	Fri May 18 13:37:17 2018 +0200
@@ -81,7 +81,7 @@
   after INIT_HEXO_CONTEXT
   after INIT_MUTEK_SCHEDULER_INITSMP
   before INIT_MUTEK_SCHEDULER_START
-  function mutekh_startup_nodev
+  function mutekh_startup_devready
 %init end
 
 %init INIT_CPUS
--- a/mutek/startup.c	Fri May 18 13:35:30 2018 +0200
+++ b/mutek/startup.c	Fri May 18 13:37:17 2018 +0200
@@ -192,12 +192,10 @@
   abort();
 }
 
-#ifndef CONFIG_DEVICE
-void mutekh_startup_nodev()
+void mutekh_startup_devready()
 {
   INIT_DEVREADY_INIT();
 }
-#endif
 
 /////////////////////////////////////// user application start