|
From: Manish R. <man...@st...> - 2007-03-20 06:08:36
|
Hi, If I update only xtime not jiffies then any maturing timer started before going sleep mode behave wrongly. What's ur opinion? In OMAP/PXA is it possible to take system in sleep mode thru sysfs if yes then ehere this sysfs file Reside? Regards Manish -----Original Message----- From: Todd Poynor [mailto:tod...@qa...] Sent: Friday, March 16, 2007 12:17 AM To: Manish RATHI; dyn...@li... Subject: Re: [Dynamicpower-devel] Sleep and deep sleep state On Thu, 15 Mar 2007 1:11 am, Manish RATHI wrote: > Hi, > Is there any interface (sysfs or any other) in linux by which I can > take system into sleep mode? Standard feature of linux, several embedded board families such as TI OMAPs and Intel/Marvell PXA2xx implement the pm_ops that hook up to the generic interface. > Is there any reference code in which timer is updated by sleep > duration? Is it OK if I directly update Jiffies in my code. Adjusting jiffies for sleep intervals is not standard practice in linux (jiffies are relative OS time that can be considered to be frozen during OS inactivity). Adjust wall time (xtime) according to RTC or other timesource that keeps time during the sleep. See existing rtc drivers suspend/resume callbacks. --todd |