WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [xenppc-unstable] [POWERPC][XEN] remove dead preemption code

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [xenppc-unstable] [POWERPC][XEN] remove dead preemption code
From: Xen patchbot-xenppc-unstable <patchbot-xenppc-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 01 Sep 2006 17:30:36 +0000
Delivery-date: Fri, 01 Sep 2006 10:32:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID ddaaf7ca1c34fadf3741433c33bb676a0376adeb
# Parent  f25517f71f40b1636b0b7eb8dfefad231053e569
[POWERPC][XEN] remove dead preemption code

Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/exceptions.c |   30 ++++--------------------------
 1 files changed, 4 insertions(+), 26 deletions(-)

diff -r f25517f71f40 -r ddaaf7ca1c34 xen/arch/powerpc/exceptions.c
--- a/xen/arch/powerpc/exceptions.c     Fri Sep 01 12:12:43 2006 -0400
+++ b/xen/arch/powerpc/exceptions.c     Fri Sep 01 12:19:41 2006 -0400
@@ -16,6 +16,7 @@
  * Copyright (C) IBM Corp. 2005, 2006
  *
  * Authors: Hollis Blanchard <hollisb@xxxxxxxxxx>
+ *          Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
  */
 
 #include <xen/config.h>
@@ -23,11 +24,9 @@
 #include <xen/sched.h>
 #include <xen/serial.h>
 #include <xen/gdbstub.h>
-#include <public/xen.h>
 #include <asm/time.h>
 
 #undef DEBUG
-#define HDEC_PREEMPT
 
 extern ulong ppc_do_softirq(ulong orig_msr);
 extern void do_timer(struct cpu_user_regs *regs);
@@ -38,31 +37,10 @@ int hdec_sample = 0;
 
 void do_timer(struct cpu_user_regs *regs)
 {
-    /* XXX this is just here to keep HDEC from firing until
-     * reprogram_ac_timer() sets the proper next-tick time */
-    mthdec(timebase_freq);
-
-#ifdef HDEC_PREEMPT
+    /* Set HDEC high so it stops firing and can be reprogrammed by
+     * set_preempt() */
+    mthdec(INT_MAX);
     raise_softirq(TIMER_SOFTIRQ);
-#endif
-#ifdef DEBUG
-    {
-        int d;
-        if (regs->msr & MSR_HV) {
-            d = -1;
-        } else {
-            d = get_current()->domain->domain_id;
-        }
-        extern char serial_getc_nb(int handle);
-        if (0 && serial_getc_nb(0) > 0) {
-            printk("H: pc: 0x%lx lr: 0x%lx \n", regs->pc, regs->lr);
-        }
-        if (hdec_sample)  {
-            printk("H: pc: 0x%lx lr: 0x%lx \n", regs->pc, regs->lr);
-            hdec_sample = 0;
-        }
-    }
-#endif
 }
 
 void do_dec(struct cpu_user_regs *regs)

_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [xenppc-unstable] [POWERPC][XEN] remove dead preemption code, Xen patchbot-xenppc-unstable <=