lkml.org 
[lkml]   [2021]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] cpuset: Modify the type of use_parent_ecpus from int to bool
Date
Since the use_parent_ecpus in cpuset is only used as bool type, change
the type from int to bool.

Signed-off-by: lifeng68 <lifeng2221dd1@zoho.com.cn>
---
kernel/cgroup/cpuset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 53c70c470a38..c074e9f1064b 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -158,7 +158,7 @@ struct cpuset {
* use_parent_ecpus - set if using parent's effective_cpus
* child_ecpus_count - # of children with use_parent_ecpus set
*/
- int use_parent_ecpus;
+ bool use_parent_ecpus;
int child_ecpus_count;
};

--
2.25.1

\
 
 \ /
  Last update: 2021-01-07 04:50    [W:0.252 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site