/SPARTAN/trunk/src/mm/buddy.c |
---|
48,8 → 48,6 |
buddy_system_t *b; |
int i; |
ASSERT(max_order < BUDDY_SYSTEM_INNER_BLOCK); |
ASSERT(op->find_buddy); |
ASSERT(op->set_order); |
ASSERT(op->get_order); |
168,9 → 166,6 |
buddy = b->op->find_buddy(block); |
if (buddy && i != b->max_order - 1) { |
ASSERT(b->op->get_order(buddy) == i); |
/* |
* Remove buddy from the list of order i. |
*/ |
177,12 → 172,6 |
list_remove(buddy); |
/* |
* Invalidate order of both block and buddy. |
*/ |
b->op->set_order(block, BUDDY_SYSTEM_INNER_BLOCK); |
b->op->set_order(buddy, BUDDY_SYSTEM_INNER_BLOCK); |
/* |
* Coalesce block and buddy into one block. |
*/ |
hlp = b->op->coalesce(block, buddy); |
/SPARTAN/trunk/src/proc/scheduler.c |
---|
29,23 → 29,23 |
#include <proc/scheduler.h> |
#include <proc/thread.h> |
#include <proc/task.h> |
#include <mm/heap.h> |
#include <mm/frame.h> |
#include <mm/page.h> |
#include <cpu.h> |
#include <mm/vm.h> |
#include <arch/asm.h> |
#include <arch/faddr.h> |
#include <arch/atomic.h> |
#include <synch/spinlock.h> |
#include <config.h> |
#include <context.h> |
#include <func.h> |
#include <arch.h> |
#include <arch/asm.h> |
#include <list.h> |
#include <panic.h> |
#include <typedefs.h> |
#include <cpu.h> |
#include <mm/page.h> |
#include <synch/spinlock.h> |
#include <arch/faddr.h> |
#include <arch/atomic.h> |
#include <print.h> |
#include <mm/frame.h> |
#include <mm/heap.h> |
#include <debug.h> |
volatile count_t nrdy; |