To improve battery performance we want to make the CPU clock stop/pause for little intervals when the device is not in use. Does anyone have any experience with doing this to the configuration mentioned in the subject of this post: ARM Cortex A8 CPU (a Archos 70 Internet Tablet running Android)?
Any pointers on where to start?
Thanks.
ARM has the
WFEandWFIinstructions which cause the CPU to shut down until either an event (SEV) or an interrupt wakes the processor up.WTEis typically used by spin locks to prevent unnecessary CPU usage whileWFIwill be used by the kernel idle thread.As other have said, this is not stuff that an application programmer should ever need to worry about. As an application programmer, all you really should be doing is suspending your thread until there is stuff for it to do. This will typically be done using
select,epollor waits on conditional_variables. Generally avoid sleep though.