From mboxrd@z Thu Jan 1 00:00:00 1970 From: khilman@deeprootsystems.com (Kevin Hilman) Date: Mon, 16 Nov 2009 10:31:34 -0800 Subject: [PATCH v2 26/32] OMAP3: PM debug: allow runtime toggle of PM features In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB030A8C87BF@dbde02.ent.ti.com> (Thara Gopinath's message of "Fri\, 13 Nov 2009 15\:35\:57 +0530") References: <1256252993-24328-1-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-9-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-10-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-11-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-12-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-13-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-14-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-15-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-16-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-17-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-18-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-19-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-20-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-21-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-22-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-23-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-24-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-25-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-26-git-send-email-khilman@deeprootsystems.com> <1256252993-24328-27-git-send-email-khilman@deeprootsystems.com> <5A47E75E594F054BAF48C5E4FC4B92AB030A8C87BF@dbde02.ent.ti.com> Message-ID: <873a4el3sp.fsf@deeprootsystems.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org "Gopinath, Thara" writes: [...] >>> >>>+void omap3_pm_off_mode_enable(int enable) >>>+{ >>>+ struct power_state *pwrst; >>>+ u32 state; >>>+ >>>+ if (enable) >>>+ state = PWRDM_POWER_OFF; >>>+ else >>>+ state = PWRDM_POWER_RET; >>>+ >>>+ list_for_each_entry(pwrst, &pwrst_list, node) { >>>+ pwrst->next_state = state; >>>+ set_pwrdm_state(pwrst->pwrdm, state); > > Shld the next states of MPU and CORE domain also be changed? No. MPU & CORE are handled by CPUidle, and there the enable_off_mode flag is checked. > It should happen only in idle thread or system suspend path. Not at > any arbit point where user sets enable_off_mode. Why not? If the domain is idle, it is turned off immediately. If it's not idle, it doesn't transition until it is. Kevin <