Changeset 22f7769 in mainline for src/time/delay.c


Ignore:
Timestamp:
2005-10-17T23:31:41Z (20 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b2c872d
Parents:
75eacab
Message:

Rename cpu_priority_{high|low|restore|read} functions to interrupts_{disable|enable|restore|read}.
Rename pri_t to ipl_t (Interrupt Priority Level).
Rename thread_t::pri to thread_t::priority.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/time/delay.c

    r75eacab r22f7769  
    4343void delay(__u32 usec)
    4444{
    45         pri_t pri;
     45        ipl_t ipl;
    4646       
    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();
    5154        asm_delay_loop(usec * CPU->delay_loop_const);
    52         cpu_priority_restore(pri);
     55        interrupts_restore(ipl);
    5356}
Note: See TracChangeset for help on using the changeset viewer.