Skip to contentSkip to conversation

sched: Remove unused inline function uclamp_bucket_base_value()

PATCH Applied YueHaibing 4 participants 4 messages Sep 22, 2020 – Sep 29, 2020 Scheduler

lore
Share & tools
lore

YueHaibing

author
#0 lore raw

PATCH 1/1 sched: Remove unused inline function uclamp_bucket_base_value()

There is no caller in tree, so can remove it.

---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/core.c +0 -5
index 2d95dc3f4644..1b06b952dbbe 100644
@@ -940,11 +940,6 @@ static inline unsigned int uclamp_bucket_id(unsigned int clamp_value)
 	return clamp_value / UCLAMP_BUCKET_DELTA;
 }
 
-static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value)
-{
-	return UCLAMP_BUCKET_DELTA * uclamp_bucket_id(clamp_value);
-}
-
 static inline unsigned int uclamp_none(enum uclamp_id clamp_id)
 {
 	if (clamp_id == UCLAMP_MIN)
Signature · 1 line
2.17.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · YueHaibing

There is no caller in tree, so can remove it.

---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/core.c +0 -0
index 2d95dc3f4644..1b06b952dbbe 100644
@@ -940,11 +940,6 @@ static inline unsigned int uclamp_bucket_id(unsigned int clamp_value)
 	return clamp_value / UCLAMP_BUCKET_DELTA;

kernel/sched/core.c static inline unsigned int uclamp_bucket_id(unsigned int clamp_value) · line 945

Quoted 10 lines
kernel/sched/core.c +0 -5
 }
 
-static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value)
-{
-	return UCLAMP_BUCKET_DELTA * uclamp_bucket_id(clamp_value);
-}
-
 static inline unsigned int uclamp_none(enum uclamp_id clamp_id)
 {
 	if (clamp_id == UCLAMP_MIN)

LGTM.

It got introduced in commit 60daf9c194106 ("sched/uclamp: Add bucket local max tracking") but was never used.

maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to YueHaibing
Quoted 4 lines · YueHaibing

There is no caller in tree, so can remove it.

Quoted 23 lines
---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/core.c +0 -6
index 2d95dc3f4644..1b06b952dbbe 100644
@@ -940,11 +940,6 @@ static inline unsigned int uclamp_bucket_id(unsigned int clamp_value)
        return clamp_value / UCLAMP_BUCKET_DELTA;
 }
 
-static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value)
-{
-       return UCLAMP_BUCKET_DELTA * uclamp_bucket_id(clamp_value);
-}
-
 static inline unsigned int uclamp_none(enum uclamp_id clamp_id)
 {
        if (clamp_id == UCLAMP_MIN)
--

2.17.1

merge bot Applied
#3 lore raw
In reply to YueHaibing
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     51bd5121c4eb25b911f6bc1ab4de5fe865fe0dcb
Gitweb:        https://git.kernel.org/tip/51bd5121c4eb25b911f6bc1ab4de5fe865fe0dcb
Author:        YueHaibing <[email protected]>
AuthorDate:    Tue, 22 Sep 2020 21:24:10 +08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Fri, 25 Sep 2020 14:23:25 +02:00

sched: Remove unused inline function uclamp_bucket_base_value()

There is no caller in tree, so can remove it.

---
 kernel/sched/core.c | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/core.c +0 -5
index c36dc1a..dd32d85 100644
@@ -940,11 +940,6 @@ static inline unsigned int uclamp_bucket_id(unsigned int clamp_value)
 	return clamp_value / UCLAMP_BUCKET_DELTA;
 }
 
-static inline unsigned int uclamp_bucket_base_value(unsigned int clamp_value)
-{
-	return UCLAMP_BUCKET_DELTA * uclamp_bucket_id(clamp_value);
-}
-
 static inline unsigned int uclamp_none(enum uclamp_id clamp_id)
 {
 	if (clamp_id == UCLAMP_MIN)