Skip to content

Commit fa1452e

Browse files
h-shimamotoIngo Molnar
authored andcommitted
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>
1 parent a49ed0b commit fa1452e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/linux/sched.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,17 +1421,17 @@ struct task_struct {
14211421
#endif
14221422
#ifdef CONFIG_TRACE_IRQFLAGS
14231423
unsigned int irq_events;
1424-
int hardirqs_enabled;
14251424
unsigned long hardirq_enable_ip;
1426-
unsigned int hardirq_enable_event;
14271425
unsigned long hardirq_disable_ip;
1426+
unsigned int hardirq_enable_event;
14281427
unsigned int hardirq_disable_event;
1429-
int softirqs_enabled;
1428+
int hardirqs_enabled;
1429+
int hardirq_context;
14301430
unsigned long softirq_disable_ip;
1431-
unsigned int softirq_disable_event;
14321431
unsigned long softirq_enable_ip;
1432+
unsigned int softirq_disable_event;
14331433
unsigned int softirq_enable_event;
1434-
int hardirq_context;
1434+
int softirqs_enabled;
14351435
int softirq_context;
14361436
#endif
14371437
#ifdef CONFIG_LOCKDEP

0 commit comments

Comments
 (0)