Skip to contentSkip to conversation

task_struct: reduce size on TRACE_IRQFLAGS and 64bit

PATCH In review Hiroshi Shimamoto 1 participant 2 messages Nov 30, 2009 – Dec 2, 2009 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 task_struct: reduce size on TRACE_IRQFLAGS and 64bit

From: Hiroshi Shimamoto <[email protected]>

Reorder task_struct field for TRACE_IRQFLAGS to remove padding on 64bit.

---
 include/linux/sched.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
include/linux/sched.h +5 -5
index b9c0bcd..7341cd7 100644
@@ -1421,17 +1421,17 @@ struct task_struct {
 #endif
 #ifdef CONFIG_TRACE_IRQFLAGS
 	unsigned int irq_events;
-	int hardirqs_enabled;
 	unsigned long hardirq_enable_ip;
-	unsigned int hardirq_enable_event;
 	unsigned long hardirq_disable_ip;
+	unsigned int hardirq_enable_event;
 	unsigned int hardirq_disable_event;
-	int softirqs_enabled;
+	int hardirqs_enabled;
+	int hardirq_context;
 	unsigned long softirq_disable_ip;
-	unsigned int softirq_disable_event;
 	unsigned long softirq_enable_ip;
+	unsigned int softirq_disable_event;
 	unsigned int softirq_enable_event;
-	int hardirq_context;
+	int softirqs_enabled;
 	int softirq_context;
 #endif
 #ifdef CONFIG_LOCKDEP
Signature · 1 line
1.6.3.3
#1 lore raw

[tip:core/locking] locking, task_struct: Reduce size on TRACE_IRQFLAGS and 64bit

Commit-ID:  fa1452e808732ae10e8b1267fd75fc2d028d634b
Gitweb:     http://git.kernel.org/tip/fa1452e808732ae10e8b1267fd75fc2d028d634b
Author:     Hiroshi Shimamoto <[email protected]>
AuthorDate: Mon, 30 Nov 2009 14:59:44 +0900
Committer:  Ingo Molnar <[email protected]>
CommitDate: Wed, 2 Dec 2009 10:24:37 +0100

locking, task_struct: Reduce size on TRACE_IRQFLAGS and 64bit

Reorder task_struct field for TRACE_IRQFLAGS to remove padding on 64-bit.

LKML-Reference: <[email protected]>

---
 include/linux/sched.h |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
include/linux/sched.h +5 -5
index 75e6e60..49be8f7 100644
@@ -1421,17 +1421,17 @@ struct task_struct {
 #endif
 #ifdef CONFIG_TRACE_IRQFLAGS
 	unsigned int irq_events;
-	int hardirqs_enabled;
 	unsigned long hardirq_enable_ip;
-	unsigned int hardirq_enable_event;
 	unsigned long hardirq_disable_ip;
+	unsigned int hardirq_enable_event;
 	unsigned int hardirq_disable_event;
-	int softirqs_enabled;
+	int hardirqs_enabled;
+	int hardirq_context;
 	unsigned long softirq_disable_ip;
-	unsigned int softirq_disable_event;
 	unsigned long softirq_enable_ip;
+	unsigned int softirq_disable_event;
 	unsigned int softirq_enable_event;
-	int hardirq_context;
+	int softirqs_enabled;
 	int softirq_context;
 #endif
 #ifdef CONFIG_LOCKDEP