ANDROID: restrict store of prefer_idle as boolean
It works as boolean so stores like a boolean too. Bug: 116734731 Test: Set stune Change-Id: I0daa3cc1723d009ed5bc2a71fa1c2e3d4ece6a7f Signed-off-by: Wei Wang <wvw@google.com>
This commit is contained in:
@@ -455,7 +455,7 @@ prefer_idle_write(struct cgroup_subsys_state *css, struct cftype *cft,
|
||||
u64 prefer_idle)
|
||||
{
|
||||
struct schedtune *st = css_st(css);
|
||||
st->prefer_idle = prefer_idle;
|
||||
st->prefer_idle = !!prefer_idle;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user