Changeset 22f7769 in mainline for src/time/delay.c
- Timestamp:
- 2005-10-17T23:31:41Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4b2c872d
- Parents:
- 75eacab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/time/delay.c
r75eacab r22f7769 43 43 void delay(__u32 usec) 44 44 { 45 pri_t pri;45 ipl_t ipl; 46 46 47 /* The delay loop is calibrated for each and every 48 CPU in the system. Therefore it is necessary to 49 cpu_priority_high() before calling the asm_delay_loop(). */ 50 pri = cpu_priority_high(); 47 /* 48 * The delay loop is calibrated for each and every 49 * CPU in the system. Therefore it is necessary to 50 * call interrupts_disable() before calling the 51 * asm_delay_loop(). 52 */ 53 ipl = interrupts_disable(); 51 54 asm_delay_loop(usec * CPU->delay_loop_const); 52 cpu_priority_restore(pri);55 interrupts_restore(ipl); 53 56 }
Note:
See TracChangeset
for help on using the changeset viewer.