]> Zhao Yanbai Git Server - minix.git/commitdiff
Make more services use stateful live update 59/3159/1
authorDavid van Moolenbroek <david@minix3.org>
Wed, 2 Sep 2015 02:49:18 +0000 (04:49 +0200)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 17 Sep 2015 17:12:02 +0000 (17:12 +0000)
Change-Id: If2e5b8e56fef633e471ec1cbb6e08ce3496ea755

minix/drivers/bus/pci/main.c
minix/drivers/printer/printer/printer.c
minix/drivers/storage/fbd/fbd.c
minix/drivers/storage/filter/main.c
minix/drivers/storage/memory/memory.c
minix/drivers/system/log/log.c
minix/drivers/system/random/main.c
minix/include/minix/audio_fw.h
minix/lib/libaudiodriver/audio_fw.c
minix/lib/libaudiodriver/liveupdate.c

index 7c6dfe10173459826f29a08420ac947fe4a8c570..a21080a627b49748b1b995a039162db5ead33ae2 100644 (file)
@@ -715,7 +715,6 @@ sef_local_startup(void)
         * Register init callbacks. Use the same function for all event types
         */
        sef_setcb_init_fresh(sef_cb_init);
-       sef_setcb_init_lu(sef_cb_init);
        sef_setcb_init_restart(sef_cb_init);
 
        /* Let SEF perform startup. */
index 4dc1486be500c674278f690562fc83d49cb06a1a..109c88738e5f26527bcaa9274c27e43c40504e44 100644 (file)
@@ -123,7 +123,6 @@ static void sef_local_startup()
 {
   /* Register init callbacks. */
   sef_setcb_init_fresh(sef_cb_init_fresh);
-  sef_setcb_init_lu(sef_cb_init_fresh);
   sef_setcb_init_restart(sef_cb_init_fresh);
 
   /* Register live update callbacks. */
index c85148a467a7c7daacbde07025a3b1e1c151b681..ee216b663637e9619e71c629559daa0491222511 100644 (file)
@@ -113,7 +113,6 @@ static void sef_local_startup(void)
        /* Register init callbacks. */
        sef_setcb_init_fresh(sef_cb_init_fresh);
        sef_setcb_init_restart(sef_cb_init_fresh);
-       sef_setcb_init_lu(sef_cb_init_fresh);
 
        /* Register signal callback. */
        sef_setcb_signal_handler(sef_cb_signal_handler);
index ca1a5a0e0bac210a4af232b3654ed80172d9453e..98124609b77ae6aaf5f22fc2a0a730ed52a216ed 100644 (file)
@@ -352,7 +352,6 @@ static void sef_local_startup(void)
        /* Register init callbacks. */
        sef_setcb_init_fresh(sef_cb_init_fresh);
        sef_setcb_init_restart(sef_cb_init_fresh);
-       sef_setcb_init_lu(sef_cb_init_fresh);
 
        /* Register signal callbacks. */
        sef_setcb_signal_handler(sef_cb_signal_handler);
index 2dc6b7f5149d5c7208499e50c03cf90c8dc9c278..ffa6b49abe94b68536185982657ce93a2738ecbd 100644 (file)
@@ -114,7 +114,6 @@ static void sef_local_startup()
 {
   /* Register init callbacks. */
   sef_setcb_init_fresh(sef_cb_init_fresh);
-  sef_setcb_init_lu(SEF_CB_INIT_LU_DEFAULT);
   sef_setcb_init_restart(SEF_CB_INIT_RESTART_STATEFUL);
 
   /* Let SEF perform startup. */
index 0f693e8443c306e1cb718ebd4182e4981e496466..8869eedd27eb7ef3b35a57df830dc7fd5047eb8f 100644 (file)
@@ -68,7 +68,6 @@ static void sef_local_startup()
 {
   /* Register init callbacks. */
   sef_setcb_init_fresh(sef_cb_init_fresh);
-  sef_setcb_init_lu(sef_cb_init_fresh);
 
   /* Register live update callbacks. */
   sef_setcb_lu_prepare(sef_cb_lu_prepare);
index ffe46982ebf9151abafa7e2c7b6647614a92c86a..9cdfb8dbaf8bf32068e74df828900970bbfc6164 100644 (file)
@@ -71,7 +71,6 @@ static void sef_local_startup()
 {
   /* Register init callbacks. */
   sef_setcb_init_fresh(sef_cb_init_fresh);
-  sef_setcb_init_lu(sef_cb_init_fresh);
   sef_setcb_init_restart(sef_cb_init_fresh);
 
   /* Let SEF perform startup. */
index 53c3ee57d1ebe61f6a61c82ece41d56bfd3453ef..7a22739de51fde409a3133bdc74678006fa01e0d 100644 (file)
@@ -85,7 +85,7 @@ EXTERN special_file_t special_file[];
 #define WRITE_DMA 2
 
 EXTERN int sef_cb_lu_prepare(int state);
-EXTERN int sef_cb_lu_state_isvalid(int state);
+EXTERN int sef_cb_lu_state_isvalid(int state, int flags);
 EXTERN void sef_cb_lu_state_dump(int state);
 
 #endif /* AUDIO_FW_H */
index 39410c98532ed76447abc28eb662f894b1d7314d..adba6526a3aacf3ac94cf57372fd5e3634af326a 100644 (file)
@@ -88,7 +88,6 @@ static void sef_local_startup(void)
 {
   /* Register init callbacks. */
   sef_setcb_init_fresh(sef_cb_init_fresh);
-  sef_setcb_init_lu(sef_cb_init_fresh);
   sef_setcb_init_restart(sef_cb_init_fresh);
 
   /* Register live update callbacks. */
index 000da3672d3378275081c111431029282574072b..e8e0c7459109f41a5bb13ea6b60873b61a465433 100644 (file)
@@ -78,7 +78,7 @@ int sef_cb_lu_prepare(int state)
 /*===========================================================================*
  *                       sef_cb_lu_state_isvalid                            *
  *===========================================================================*/
-int sef_cb_lu_state_isvalid(int state)
+int sef_cb_lu_state_isvalid(int state, int __unused flags)
 {
   return SEF_LU_STATE_IS_STANDARD(state) || AUDIO_STATE_IS_CUSTOM(state);
 }