ia64/xen-unstable

view xen/arch/ia64/xen/idle0_task.c @ 9405:29dfadcc5029

[IA64] Followup to xen time cleanup

Clean up to xen time handler. Tristan #if 0 some code because it seems
redundant, which however is actually problematic logic as a reason for
an intermittent timer oops issue of dom0. So delete it now.

Also remove vcpu_wake, since wakeup current has nothing meaningful and
simply waste cpu cycle.

Signed-off-by: Kevin Tian <kevin.tian@intel.com>
author awilliam@xenbuild.aw
date Mon Mar 27 15:32:08 2006 -0700 (2006-03-27)
parents 5ae96e117af2
children bdb08c9ef3d1
line source
1 #include <xen/config.h>
2 #include <xen/sched.h>
3 #include <asm/desc.h>
5 #define INIT_MM(name) \
6 { \
7 .pgd = swapper_pg_dir, \
8 .mm_users = ATOMIC_INIT(2), \
9 .mm_count = ATOMIC_INIT(1), \
10 .page_table_lock = SPIN_LOCK_UNLOCKED, \
11 .mmlist = LIST_HEAD_INIT(name.mmlist), \
12 }
14 #define IDLE_VCPU(_v) \
15 { \
16 processor: 0, \
17 domain: 0 \
18 }
20 struct mm_struct init_mm = INIT_MM(init_mm);
21 EXPORT_SYMBOL(init_mm);
23 /*
24 * Initial task structure.
25 *
26 * We need to make sure that this is properly aligned due to the way process stacks are
27 * handled. This is done by having a special ".data.init_task" section...
28 */
29 union {
30 struct {
31 struct vcpu task;
32 } s;
33 unsigned long stack[KERNEL_STACK_SIZE/sizeof (unsigned long)];
34 } init_task_mem asm ("init_task") __attribute__((section(".data.init_task"))) = {{
35 .task = IDLE_VCPU(init_task_mem.s.task)
36 }};
38 EXPORT_SYMBOL(init_task);