ia64/xen-unstable

changeset 11495:62196a0f3791

[POWERPC][XEN] remove dead preemption code

Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Fri Sep 01 12:19:41 2006 -0400 (2006-09-01)
parents b82a8107cae6
children 0e02ac68b01b
files xen/arch/powerpc/exceptions.c
line diff
     1.1 --- a/xen/arch/powerpc/exceptions.c	Fri Sep 01 12:12:43 2006 -0400
     1.2 +++ b/xen/arch/powerpc/exceptions.c	Fri Sep 01 12:19:41 2006 -0400
     1.3 @@ -16,6 +16,7 @@
     1.4   * Copyright (C) IBM Corp. 2005, 2006
     1.5   *
     1.6   * Authors: Hollis Blanchard <hollisb@us.ibm.com>
     1.7 + *          Jimi Xenidis <jimix@watson.ibm.com>
     1.8   */
     1.9  
    1.10  #include <xen/config.h>
    1.11 @@ -23,11 +24,9 @@
    1.12  #include <xen/sched.h>
    1.13  #include <xen/serial.h>
    1.14  #include <xen/gdbstub.h>
    1.15 -#include <public/xen.h>
    1.16  #include <asm/time.h>
    1.17  
    1.18  #undef DEBUG
    1.19 -#define HDEC_PREEMPT
    1.20  
    1.21  extern ulong ppc_do_softirq(ulong orig_msr);
    1.22  extern void do_timer(struct cpu_user_regs *regs);
    1.23 @@ -38,31 +37,10 @@ int hdec_sample = 0;
    1.24  
    1.25  void do_timer(struct cpu_user_regs *regs)
    1.26  {
    1.27 -    /* XXX this is just here to keep HDEC from firing until
    1.28 -     * reprogram_ac_timer() sets the proper next-tick time */
    1.29 -    mthdec(timebase_freq);
    1.30 -
    1.31 -#ifdef HDEC_PREEMPT
    1.32 +    /* Set HDEC high so it stops firing and can be reprogrammed by
    1.33 +     * set_preempt() */
    1.34 +    mthdec(INT_MAX);
    1.35      raise_softirq(TIMER_SOFTIRQ);
    1.36 -#endif
    1.37 -#ifdef DEBUG
    1.38 -    {
    1.39 -        int d;
    1.40 -        if (regs->msr & MSR_HV) {
    1.41 -            d = -1;
    1.42 -        } else {
    1.43 -            d = get_current()->domain->domain_id;
    1.44 -        }
    1.45 -        extern char serial_getc_nb(int handle);
    1.46 -        if (0 && serial_getc_nb(0) > 0) {
    1.47 -            printk("H: pc: 0x%lx lr: 0x%lx \n", regs->pc, regs->lr);
    1.48 -        }
    1.49 -        if (hdec_sample)  {
    1.50 -            printk("H: pc: 0x%lx lr: 0x%lx \n", regs->pc, regs->lr);
    1.51 -            hdec_sample = 0;
    1.52 -        }
    1.53 -    }
    1.54 -#endif
    1.55  }
    1.56  
    1.57  void do_dec(struct cpu_user_regs *regs)