Hi Sudeep,
On 4/19/2016 6:30 AM, Sudeep Holla wrote:
+struct acpi_processor_lpi *lpi;Can we avoid calling cpu_pm_enter and cpu_pm_exit for retention
+int acpi_processor_ffh_lpi_enter(struct acpi_processor_lpi *lpi, int idx)
+{
+ int ret;
+
+ if (!idx) {
+ cpu_do_idle();
+ return idx;
+ }
+
+ /* TODO cpu_pm_{enter,exit} can be done in generic code ? */
+ ret = cpu_pm_enter();
states as it is not necessary? May be we can check LPI architecture
specific context loss flags prior to calling these.
+ }
+
+ return ret ? -1 : idx;
+}
+
By the way, thanks for posting these patches!