|
@@ -300,7 +300,7 @@ struct util_est {
|
|
|
unsigned int enqueued;
|
|
|
unsigned int ewma;
|
|
|
#define UTIL_EST_WEIGHT_SHIFT 2
|
|
|
-};
|
|
|
+} __attribute__((__aligned__(sizeof(u64))));
|
|
|
|
|
|
/*
|
|
|
* The load_avg/util_avg accumulates an infinite geometric series
|
|
@@ -364,7 +364,7 @@ struct sched_avg {
|
|
|
unsigned long runnable_load_avg;
|
|
|
unsigned long util_avg;
|
|
|
struct util_est util_est;
|
|
|
-};
|
|
|
+} ____cacheline_aligned;
|
|
|
|
|
|
struct sched_statistics {
|
|
|
#ifdef CONFIG_SCHEDSTATS
|
|
@@ -435,7 +435,7 @@ struct sched_entity {
|
|
|
* Put into separate cache line so it does not
|
|
|
* collide with read-mostly values above.
|
|
|
*/
|
|
|
- struct sched_avg avg ____cacheline_aligned_in_smp;
|
|
|
+ struct sched_avg avg;
|
|
|
#endif
|
|
|
};
|
|
|
|