-Don't parse pagetables for get_on_cpu if SMP is disabled

-Remove debug output
This commit is contained in:
Jan Stoess 2010-07-01 13:25:04 +02:00
parent 779b2f9d33
commit 494bca763c
2 changed files with 7 additions and 3 deletions

View File

@ -66,7 +66,6 @@ static void show_sched_queue(bool empty)
{
/* check whether we have something for this prio */
tcb_t* walk = global_present_list;
printf("tcb %t\n", walk);
do {
if (walk->sched_state.get_priority() == prio && walk->get_cpu() == cpu)

View File

@ -1,6 +1,6 @@
/*********************************************************************
*
* Copyright (C) 2002-2003, 2006, 2008-2009, Karlsruhe University
* Copyright (C) 2002-2003, 2006, 2008-2010, Karlsruhe University
*
* File path: api/v4/smp.h
* Description: multiprocessor handling
@ -38,6 +38,7 @@
template<typename T> INLINE T *get_on_cpu(cpuid_t cpu, T *item)
{
#if defined(CONFIG_SMP)
pgent_t *pgent;
pgent_t::pgsize_e pgsize;
space_t *kspace = get_kernel_space();
@ -48,9 +49,13 @@ template<typename T> INLINE T *get_on_cpu(cpuid_t cpu, T *item)
addr_mask(item, page_mask (pgsize)));
else
return NULL;
#else
return item;
#endif
}
#if defined (CONFIG_SMP)
#if defined(CONFIG_SMP)
#define ON_CONFIG_SMP(x) do { x; } while(0)