init : optimize the performance of boot time.
Avoid the unnecessary check to optimize the performance of boot time. Before change: init : Command 'mount_all /vendor/etc/fstab.qcom --late' action=late-fs (/vendor/etc/init/hw/init.target.rc:105) took 1382ms and succeeded after change: init : Command 'mount_all /vendor/etc/fstab.qcom --late' action=late-fs (/vendor/etc/init/hw/init.target.rc:105) took 588ms and succeeded Change-Id: I3177acae7e3080d24fd3ca52e2ad31d86fcda416
This commit is contained in:
parent
b1488addda
commit
7ee6de6e0d
|
@ -529,6 +529,9 @@ void DeviceHandler::HandleAshmemUevent(const Uevent& uevent) {
|
|||
}
|
||||
|
||||
void DeviceHandler::HandleUevent(const Uevent& uevent) {
|
||||
if (!uevent.modalias.empty()) return;
|
||||
if (uevent.subsystem == "firmware" && uevent.action == "add") return;
|
||||
|
||||
if (uevent.action == "add" || uevent.action == "change" ||
|
||||
uevent.action == "bind" || uevent.action == "online") {
|
||||
FixupSysPermissions(uevent.path, uevent.subsystem);
|
||||
|
|
Loading…
Reference in New Issue