Changeset 4184e76 in mainline for kernel/generic/src/proc/scheduler.c


Ignore:
Timestamp:
2007-02-05T15:03:01Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d8d542e
Parents:
b513b3e
Message:

explicit typecast, fix signed/unsigned comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/proc/scheduler.c

    rb513b3e r4184e76  
    145145                        spinlock_unlock(&CPU->lock);
    146146                        THREAD->saved_fpu_context =
    147                                 slab_alloc(fpu_context_slab, 0);
     147                            (fpu_context_t *) slab_alloc(fpu_context_slab, 0);
    148148                        /* We may have switched CPUs during slab_alloc */
    149149                        goto restart;
     
    538538{
    539539        thread_t *t;
    540         int count, average, i, j, k = 0;
     540        int count, average, j, k = 0;
     541        unsigned int i;
    541542        ipl_t ipl;
    542543
     
    690691{
    691692        ipl_t ipl;
    692         int cpu,i;
     693        unsigned int cpu, i;
    693694        runq_t *r;
    694695        thread_t *t;
     
    698699         * let's not be interrupted */
    699700        ipl = interrupts_disable();
    700         for (cpu=0;cpu < config.cpu_count; cpu++) {
     701        for (cpu = 0; cpu < config.cpu_count; cpu++) {
    701702
    702703                if (!cpus[cpu].active)
Note: See TracChangeset for help on using the changeset viewer.