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:
Wei Wang
2018-09-26 13:48:19 -07:00
parent 5efa57938b
commit e709f59a8c

View File

@@ -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;
}