[Q] error handling in runtime PM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all

There are currently several functions similar to __pm_runtime_suspend() in 
runtime.c, working according to the same principle: they check if the 
RPM_GET_PUT flag is set, if so, they increment, or decrement-and-test the 
usage-count, then call the actual worker function, e.g., rpm_suspend(). 
This latter function can fail, then its return code will be passed back to 
the caller, but - the usage counter will not be restored. Is this a design 
decision or a bug?

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux