Skip to contentSkip to conversation

hrtimer: reorder struct hrtimer to save 8 bytes on 64 bit builds

PATCH New Richard Kennedy 1 participant 1 message Aug 1, 2008 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hrtimer: reorder struct hrtimer to save 8 bytes on 64 bit builds

reorder struct hrtimer to save 8 bytes on 64 bit builds when CONFIG_TIMER_STATS selected.
(also removes 8 bytes from signal_struct)

---
patch against 2.6.27-rc1.
compiled & tested on AMD64 desktop machine.

richard

 include/linux/hrtimer.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/linux/hrtimer.h +2 -2
index 6d93dce..7d1dcf9 100644
@@ -115,12 +115,12 @@ struct hrtimer {
 	enum hrtimer_restart		(*function)(struct hrtimer *);
 	struct hrtimer_clock_base	*base;
 	unsigned long			state;
-	enum hrtimer_cb_mode		cb_mode;
 	struct list_head		cb_entry;
+	enum hrtimer_cb_mode		cb_mode;
 #ifdef CONFIG_TIMER_STATS
+	int				start_pid;
 	void				*start_site;
 	char				start_comm[16];
-	int				start_pid;
 #endif
 };
 
Signature · 1 line
1.5.5.1