Changeset 1066041 in mainline for kernel/generic/src/proc


Ignore:
Timestamp:
2012-07-11T07:58:03Z (13 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
935e28c
Parents:
b68ae24
Message:

preemption_disable: Turned functions into macros. Moved THREAD, AS, TASK, CPU into thread.h, as.h, task.h, cpu.h to fix the include hell that ensued.

Location:
kernel/generic/src/proc
Files:
3 edited

Legend:

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

    rb68ae24 r1066041  
    6565#include <debug.h>
    6666#include <stacktrace.h>
     67#include <cpu.h>
    6768
    6869static void scheduler_separated_stack(void);
     
    421422                after_thread_ran();
    422423               
    423                 THREAD->need_resched = false;
     424                preemption_clear_needed();
    424425               
    425426                switch (THREAD->state) {
  • kernel/generic/src/proc/the.c

    rb68ae24 r1066041  
    4343
    4444#include <arch.h>
     45#include <debug.h>
    4546
    4647/** Initialize THE structure
     
    5354void the_initialize(the_t *the)
    5455{
    55         the->preemption_disabled = 0;
     56        the->preemption = 0;
    5657        the->cpu = NULL;
    5758        the->thread = NULL;
  • kernel/generic/src/proc/thread.c

    rb68ae24 r1066041  
    375375        thread->nomigrate = 0;
    376376        thread->state = Entering;
    377         thread->need_resched = false;
    378377       
    379378        timeout_initialize(&thread->sleep_timeout);
Note: See TracChangeset for help on using the changeset viewer.