Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7c13c55 in mainline


Ignore:
Timestamp:
2012-03-11T19:28:29Z (10 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master
Children:
096d4a6b
Parents:
46a808f5
Message:

arm32: Use WFE on armv7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/asm.h

    r46a808f5 r7c13c55  
    4343#include <trace.h>
    4444
    45 /** No such instruction on ARM to sleep CPU. */
     45/** No such instruction on ARM to sleep CPU.
     46 *
     47 * ARMv7 introduced wait for event and wait for interrupt.
     48 */
    4649NO_TRACE static inline void cpu_sleep(void)
    4750{
     51#ifdef PROCESSOR_armv7
     52        asm volatile (
     53                "wfe"::
     54        );
     55#endif
    4856}
    4957
Note: See TracChangeset for help on using the changeset viewer.