Skip to contentSkip to conversation

sched: reorder struct sched_rt_entity to remove padding on 64 bit builds

PATCH New Richard Kennedy 1 participant 1 message Aug 1, 2008 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched: reorder struct sched_rt_entity to remove padding on 64 bit builds

remove 8 bytes of padding on 64 bit builds
(also removes 8 bytes from task_struct)

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

Richard

 include/linux/sched.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/sched.h +1 -1
index 5270d44..3f18cd2 100644
@@ -1009,8 +1009,8 @@ struct sched_entity {
 
 struct sched_rt_entity {
 	struct list_head run_list;
-	unsigned int time_slice;
 	unsigned long timeout;
+	unsigned int time_slice;
 	int nr_cpus_allowed;
 
 	struct sched_rt_entity *back;
Signature · 1 line
1.5.5.1