All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vpmu: cleanup structures
@ 2012-02-29  9:52 Dietmar Hahn
  0 siblings, 0 replies; only message in thread
From: Dietmar Hahn @ 2012-02-29  9:52 UTC (permalink / raw)
  To: xen-devel

Hi,

a small cleanup of vpmu structures:

- struct msr_load_store_entry is unused
- struct pmumsr is only used in the vmx part

Dietmar.


Signed-off-by: Dietmar Hahn <dietmar.hahn@ts.fujitsu.com>


# HG changeset patch
# Parent a7bacdc5449a2f7bb9c35b2a1334b463fe9f29a9

diff -r a7bacdc5449a xen/arch/x86/hvm/vmx/vpmu_core2.c
--- a/xen/arch/x86/hvm/vmx/vpmu_core2.c	Mon Feb 27 17:05:18 2012 +0000
+++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c	Wed Feb 29 10:42:56 2012 +0100
@@ -112,6 +112,11 @@ u32 core2_ctrls_msr[] = {
     MSR_IA32_PEBS_ENABLE,
     MSR_IA32_DS_AREA};
 
+struct pmumsr {
+    unsigned int num;
+    u32 *msr;
+};
+
 struct pmumsr core2_counters = {
     3,
     core2_counters_msr
diff -r a7bacdc5449a xen/include/asm-x86/hvm/vpmu.h
--- a/xen/include/asm-x86/hvm/vpmu.h	Mon Feb 27 17:05:18 2012 +0000
+++ b/xen/include/asm-x86/hvm/vpmu.h	Wed Feb 29 10:42:56 2012 +0100
@@ -34,16 +34,6 @@
 #define MSR_TYPE_ARCH_COUNTER       3
 #define MSR_TYPE_ARCH_CTRL          4
 
-struct pmumsr {
-    unsigned int num;
-    u32 *msr;
-};
-
-struct msr_load_store_entry {
-    u32 msr_index;
-    u32 msr_reserved;
-    u64 msr_data;
-};
 
 /* Arch specific operations shared by all vpmus */
 struct arch_vpmu_ops {

-- 
Company details: http://ts.fujitsu.com/imprint.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-02-29  9:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29  9:52 [PATCH] vpmu: cleanup structures Dietmar Hahn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.