All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cpuset: Modify the type of use_parent_ecpus from int to bool
@ 2021-01-07  3:29 lifeng68
  0 siblings, 0 replies; 2+ messages in thread
From: lifeng68 @ 2021-01-07  3:29 UTC (permalink / raw)
  To: lizefan, tj, hannes; +Cc: cgroups, linux-kernel, lifeng68

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [PATCH] cpuset: Modify the type of use_parent_ecpus from int to bool
@ 2021-03-12  8:08 Li Feng
  0 siblings, 0 replies; 2+ messages in thread
From: Li Feng @ 2021-03-12  8:08 UTC (permalink / raw)
  To: lizefan.x, tj, hannes; +Cc: cgroups, linux-kernel, Li Feng

Since the use_parent_ecpus in cpuset is only used as bool type, change
the type from int to bool.

Signed-off-by: Li Feng <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 5258b68153e0..ab0bf3cc7093 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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-12  8:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07  3:29 [PATCH] cpuset: Modify the type of use_parent_ecpus from int to bool lifeng68
2021-03-12  8:08 Li Feng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.