* [PATCH] task_struct: reduce size on TRACE_IRQFLAGS and 64bit
@ 2009-11-30 5:59 Hiroshi Shimamoto
2009-12-02 10:45 ` [tip:core/locking] locking, task_struct: Reduce " tip-bot for Hiroshi Shimamoto
0 siblings, 1 reply; 2+ messages in thread
From: Hiroshi Shimamoto @ 2009-11-30 5:59 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel@vger.kernel.org
From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Reorder task_struct field for TRACE_IRQFLAGS to remove padding on 64bit.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
---
include/linux/sched.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index b9c0bcd..7341cd7 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -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
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* [tip:core/locking] locking, task_struct: Reduce size on TRACE_IRQFLAGS and 64bit
2009-11-30 5:59 [PATCH] task_struct: reduce size on TRACE_IRQFLAGS and 64bit Hiroshi Shimamoto
@ 2009-12-02 10:45 ` tip-bot for Hiroshi Shimamoto
0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Hiroshi Shimamoto @ 2009-12-02 10:45 UTC (permalink / raw)
To: linux-tip-commits
Cc: linux-kernel, h-shimamoto, hpa, mingo, a.p.zijlstra, tglx, mingo
Commit-ID: fa1452e808732ae10e8b1267fd75fc2d028d634b
Gitweb: http://git.kernel.org/tip/fa1452e808732ae10e8b1267fd75fc2d028d634b
Author: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
AuthorDate: Mon, 30 Nov 2009 14:59:44 +0900
Committer: Ingo Molnar <mingo@elte.hu>
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.
Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <4B135F50.8070302@ct.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
include/linux/sched.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 75e6e60..49be8f7 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-02 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30 5:59 [PATCH] task_struct: reduce size on TRACE_IRQFLAGS and 64bit Hiroshi Shimamoto
2009-12-02 10:45 ` [tip:core/locking] locking, task_struct: Reduce " tip-bot for Hiroshi Shimamoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox