Changeset 77a0119 in mainline for uspace/srv/system/system.c


Ignore:
Timestamp:
2025-03-03T23:03:11Z (10 hours ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Parents:
8300c72
Message:

Quiesce devices during restart, but not poweroff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/system/system.c

    r8300c72 r77a0119  
    548548
    549549        free(part_ids);
    550         part_ids = NULL;
    551550        vol_destroy(vol);
    552         vol = NULL;
    553 
    554         /* Quiesce the device tree. */
    555 
    556         log_msg(LOG_DEFAULT, LVL_NOTE, "Quiescing devices.");
    557 
    558         rc = devman_quiesce_devices("/hw");
    559         if (rc != EOK) {
    560                 log_msg(LOG_DEFAULT, LVL_ERROR,
    561                     "Failed to quiesce device tree.");
    562                 goto error;
    563         }
    564551
    565552        return EOK;
     
    668655        }
    669656
     657        /* Quiesce the device tree. */
     658
     659        log_msg(LOG_DEFAULT, LVL_NOTE, "Quiescing devices.");
     660
     661        rc = devman_quiesce_devices("/hw");
     662        if (rc != EOK) {
     663                log_msg(LOG_DEFAULT, LVL_ERROR,
     664                    "Failed to quiesce device tree.");
     665                return rc;
     666        }
     667
    670668        sys_reboot();
    671669
Note: See TracChangeset for help on using the changeset viewer.