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-devel

[Xen-devel] [PATCH 2/5] vtdt: Define APIC_TIMER_MODE_xxx in apicdef.h

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH 2/5] vtdt: Define APIC_TIMER_MODE_xxx in apicdef.h
From: "Wei, Gang" <gang.wei@xxxxxxxxx>
Date: Tue, 14 Dec 2010 11:26:45 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Delivery-date: Mon, 13 Dec 2010 19:29:53 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcubPrv1UuSPol6gQS6GH1rU8K6cBA==
Thread-topic: [PATCH 2/5] vtdt: Define APIC_TIMER_MODE_xxx in apicdef.h
vtdt: Define APIC_TIMER_MODE_xxx in apicdef.h

Remove redundant in apic.c

Signed-off-by: Wei Gang <gang.wei@xxxxxxxxx>

diff -r 845b84dfc591 xen/arch/x86/apic.c
--- a/xen/arch/x86/apic.c       Thu Dec 09 22:32:55 2010 +0800
+++ b/xen/arch/x86/apic.c       Thu Dec 09 22:32:58 2010 +0800
@@ -37,11 +37,6 @@
 #include <asm/asm_defns.h> /* for BUILD_SMP_INTERRUPT */
 #include <mach_apic.h>
 #include <io_ports.h>
-
-#define APIC_TIMER_MODE_ONESHOT         (0 << 17)
-#define APIC_TIMER_MODE_PERIODIC        (1 << 17)
-#define APIC_TIMER_MODE_TSC_DEADLINE    (2 << 17)
-#define APIC_TIMER_MODE_MASK            (3 << 17)
 
 static int tdt_enabled __read_mostly;
 static int tdt_enable __initdata = 1;
diff -r 845b84dfc591 xen/include/asm-x86/apicdef.h
--- a/xen/include/asm-x86/apicdef.h     Thu Dec 09 22:32:55 2010 +0800
+++ b/xen/include/asm-x86/apicdef.h     Thu Dec 09 22:32:58 2010 +0800
@@ -84,13 +84,19 @@
 #define                APIC_LVT0       0x350
 #define                APIC_CMCI       0x2F0
 
+/* ?? anybody using below definitions? Possible to remove them? */
 #define                        APIC_LVT_TIMER_BASE_MASK        (0x3<<18)
 #define                        GET_APIC_TIMER_BASE(x)          (((x)>>18)&0x3)
 #define                        SET_APIC_TIMER_BASE(x)          (((x)<<18))
 #define                        APIC_TIMER_BASE_CLKIN           0x0
 #define                        APIC_TIMER_BASE_TMBASE          0x1
 #define                        APIC_TIMER_BASE_DIV             0x2
-#define                        APIC_LVT_TIMER_PERIODIC         (1<<17)
+/* ?? anybody using above definitions? Possible to remove them? */
+#define                        APIC_TIMER_MODE_MASK            (0x3<<17)
+#define                        APIC_TIMER_MODE_ONESHOT         (0x0<<17)
+#define                        APIC_TIMER_MODE_PERIODIC        (0x1<<17)
+#define                        APIC_TIMER_MODE_TSC_DEADLINE    (0x2<<17)
+#define                        APIC_TIMER_MODE_RESERVED        (0x3<<17)
 #define                        APIC_LVT_MASKED                 (1<<16)
 #define                        APIC_LVT_LEVEL_TRIGGER          (1<<15)
 #define                        APIC_LVT_REMOTE_IRR             (1<<14)

Attachment: 3-def-timermode.patch
Description: 3-def-timermode.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH 2/5] vtdt: Define APIC_TIMER_MODE_xxx in apicdef.h, Wei, Gang <=