Changeset 6aea2e00 in mainline for kernel/arch/amd64/include/asm.h


Ignore:
Timestamp:
2007-04-09T21:06:22Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ddee708
Parents:
ec5b3204
Message:

use the hlt instruction more properly

File:
1 edited

Legend:

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

    rec5b3204 r6aea2e00  
    5656}
    5757
    58 static inline void cpu_sleep(void) { __asm__ volatile ("hlt\n"); };
    59 static inline void cpu_halt(void) { __asm__ volatile ("hlt\n"); };
     58static inline void cpu_sleep(void)
     59{
     60        asm volatile ("hlt\n");
     61};
     62
     63static inline void cpu_halt(void)
     64{
     65        asm volatile ("hlt\n");
     66};
    6067
    6168
Note: See TracChangeset for help on using the changeset viewer.