2023-05-26 01:50:24

by Miaohe Lin

[permalink] [raw]
Subject: [PATCH] sched: remove unused macro SCHED_FIXEDPOINT_SCALE

SCHED_FIXEDPOINT_SCALE is unused now. Remove it.

Signed-off-by: Miaohe Lin <[email protected]>
---
include/linux/sched.h | 1 -
1 file changed, 1 deletion(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index 2553918f0b61..5edd1d26cc18 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -400,7 +400,6 @@ struct sched_info {
* all these metrics based on that basic range.
*/
# define SCHED_FIXEDPOINT_SHIFT 10
-# define SCHED_FIXEDPOINT_SCALE (1L << SCHED_FIXEDPOINT_SHIFT)

/* Increase resolution of cpu_capacity calculations */
# define SCHED_CAPACITY_SHIFT SCHED_FIXEDPOINT_SHIFT
--
2.27.0



2023-06-15 01:48:02

by Miaohe Lin

[permalink] [raw]
Subject: Re: [PATCH] sched: remove unused macro SCHED_FIXEDPOINT_SCALE

On 2023/5/26 17:36, Miaohe Lin wrote:
> SCHED_FIXEDPOINT_SCALE is unused now. Remove it.

friendly ping.. :)

>
> Signed-off-by: Miaohe Lin <[email protected]>
> ---
> include/linux/sched.h | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/include/linux/sched.h b/include/linux/sched.h
> index 2553918f0b61..5edd1d26cc18 100644
> --- a/include/linux/sched.h
> +++ b/include/linux/sched.h
> @@ -400,7 +400,6 @@ struct sched_info {
> * all these metrics based on that basic range.
> */
> # define SCHED_FIXEDPOINT_SHIFT 10
> -# define SCHED_FIXEDPOINT_SCALE (1L << SCHED_FIXEDPOINT_SHIFT)
>
> /* Increase resolution of cpu_capacity calculations */
> # define SCHED_CAPACITY_SHIFT SCHED_FIXEDPOINT_SHIFT
>