Skip to contentSkip to conversation

x86/cpuidle: improve data arrangement

PATCH In review Jan Beulich 2 participants 4 messages Mar 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/cpuidle: improve data arrangement

.. to reduce the amount of holes (wasted space).

xen/include/xen/cpuidle.h +3 -3
@@ -40,9 +40,9 @@
 struct acpi_processor_cx
 {
     u8 idx;
-    u8 type;
-    u32 address;
+    u8 type;         /* ACPI_STATE_Cn */
     u8 entry_method; /* ACPI_CSTATE_EM_xxx */
+    u32 address;
     u32 latency;
     u32 latency_ticks;
     u32 power;
@@ -66,8 +66,8 @@ struct acpi_processor_power
     struct acpi_processor_flags flags;
     struct acpi_processor_cx *last_state;
     struct acpi_processor_cx *safe_state;
-    u32 last_residency;
     void *gdata; /* governor specific data */
+    u32 last_residency;
     u32 count;
     struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
 };

x86/cpuidle: improve data arrangement

.. to reduce the amount of holes (wasted space).

xen/include/xen/cpuidle.h +3 -3
@@ -40,9 +40,9 @@
 struct acpi_processor_cx
 {
     u8 idx;
-    u8 type;
-    u32 address;
+    u8 type;         /* ACPI_STATE_Cn */
     u8 entry_method; /* ACPI_CSTATE_EM_xxx */
+    u32 address;
     u32 latency;
     u32 latency_ticks;
     u32 power;
@@ -66,8 +66,8 @@ struct acpi_processor_power
     struct acpi_processor_flags flags;
     struct acpi_processor_cx *last_state;
     struct acpi_processor_cx *safe_state;
-    u32 last_residency;
     void *gdata; /* governor specific data */
+    u32 last_residency;
     u32 count;
     struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
 };

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Jan Beulich

.. to reduce the amount of holes (wasted space).

Quoted 31 lines
xen/include/xen/cpuidle.h +3 -3
@@ -40,9 +40,9 @@
 struct acpi_processor_cx
 {
     u8 idx;
-    u8 type;
-    u32 address;
+    u8 type;         /* ACPI_STATE_Cn */
     u8 entry_method; /* ACPI_CSTATE_EM_xxx */
+    u32 address;
     u32 latency;
     u32 latency_ticks;
     u32 power;
@@ -66,8 +66,8 @@ struct acpi_processor_power
     struct acpi_processor_flags flags;
     struct acpi_processor_cx *last_state;
     struct acpi_processor_cx *safe_state;
-    u32 last_residency;
     void *gdata; /* governor specific data */
+    u32 last_residency;
     u32 count;
     struct acpi_processor_cx states[ACPI_PROCESSOR_MAX_POWER];
 };

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

#2 lore raw
Quoted 8 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 3 lines · Jan Beulich

.. to reduce the amount of holes (wasted space).

This won't apply without http://lists.xen.org/archives/html/xen-devel/2012-03/msg00586.html;
do you have an opinion on that one?

Also, knowing that you're usually pretty quick in responding - did you possibly overlook http://lists.xen.org/archives/html/xen-devel/2012-03/msg00440.html?

Jan

Acked-by Acked-by
#3 lore raw
Quoted 5 lines · Jan Beulich
Quoted 5 lines
Quoted 1 line
Quoted 1 line · Keir Fraser
Quoted 2 lines · Jan Beulich

.. to reduce the amount of holes (wasted space).

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

This won't apply without
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00586.html;
do you have an opinion on that one?

No strong opinion on this one.

Quoted 3 lines

Also, knowing that you're usually pretty quick in responding - did you possibly overlook
http://lists.xen.org/archives/html/xen-devel/2012-03/msg00440.html>

Must have missed it somehow. Looks fine.

Quoted 2 lines

Jan