Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1390003 > unrolled thread
| Started by | Yuyang Du <yuyang.du@intel.com> |
|---|---|
| First post | 2016-04-28 12:40 +0200 |
| Last post | 2016-04-28 12:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 4/6] sched/fair: Add __always_inline compiler attribute to __accumulate_sum() Yuyang Du <yuyang.du@intel.com> - 2016-04-28 12:40 +0200
| From | Yuyang Du <yuyang.du@intel.com> |
|---|---|
| Date | 2016-04-28 12:40 +0200 |
| Subject | [PATCH 4/6] sched/fair: Add __always_inline compiler attribute to __accumulate_sum() |
| Message-ID | <rsRwv-1zl-45@gated-at.bofh.it> |
Everybody has it. If code-size is not the problem, __accumulate_sum()
should have it too.
Signed-off-by: Yuyang Du <yuyang.du@intel.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index abfe17a..486f098 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -2649,7 +2649,7 @@ static __always_inline u64 __decay_sum(u64 val, u32 n)
* We can compute this efficiently by combining:
* y^32 = 1/2 with precomputed \Sum 1024*y^n (where n < 32)
*/
-static u32 __accumulate_sum(u32 n)
+static __always_inline u32 __accumulate_sum(u32 n)
{
u32 contrib = 0;
--
1.7.9.5
Back to top | Article view | linux.kernel
csiph-web