Changeset 22f7769 in mainline for include


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.

Location:
include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/arch.h

    r75eacab r22f7769  
    4747#endif /* early_mapping */
    4848
    49 /*
     49/**
    5050 * For each possible kernel stack, structure
    5151 * of the following type will be placed at
     
    5353 */
    5454struct the {
    55         int preemption_disabled;
    56         thread_t *thread;               /* current thread */
    57         task_t *task;                   /* current task */
    58         cpu_t *cpu;                     /* executing cpu */
    59         vm_t *vm;                       /* current vm */
     55        int preemption_disabled;        /**< Preemption disabled counter. */
     56        thread_t *thread;               /**< Current thread. */
     57        task_t *task;                   /**< Current task. */
     58        cpu_t *cpu;                     /**< Executing cpu. */
     59        vm_t *vm;                       /**< Current vm. */
    6060};
    6161
     
    7070extern void calibrate_delay_loop(void);
    7171
    72 extern pri_t cpu_priority_high(void);
    73 extern pri_t cpu_priority_low(void);
    74 extern void cpu_priority_restore(pri_t pri);
    75 extern pri_t cpu_priority_read(void);
     72extern ipl_t interrupts_disable(void);
     73extern ipl_t interrupts_enable(void);
     74extern void interrupts_restore(ipl_t ipl);
     75extern ipl_t interrupts_read(void);
    7676
    7777#endif
  • include/proc/thread.h

    r75eacab r22f7769  
    101101        __u64 ticks;                            /**< Ticks before preemption. */
    102102
    103         int pri;                                /**< Thread's priority. Implemented as index of run queue. */
     103        int priority;                           /**< Thread's priority. Implemented as index to CPU->rq */
    104104        __u32 tid;                              /**< Thread ID. */
    105105       
Note: See TracChangeset for help on using the changeset viewer.