timer/sysclt: Restrict timer migration sysctl values to 0 and 1
authorMyungho Jung <mhjungk@gmail.com>
Wed, 19 Apr 2017 22:24:50 +0000 (15:24 -0700)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:09:40 +0000 (01:09 +0000)
commit0f732731594f8a36b4dd0516818d270f6c99feb9
tree31aa63afc3dd85db5117631b37980c44b7d08f30
parente44868e1780ba50690e143b9239ff8e4b2aabc73
timer/sysclt: Restrict timer migration sysctl values to 0 and 1

commit b94bf594cf8ed67cdd0439e70fa939783471597a upstream.

timer_migration sysctl acts as a boolean switch, so the allowed values
should be restricted to 0 and 1.

Add the necessary extra fields to the sysctl table entry to enforce that.

[ tglx: Rewrote changelog ]

Signed-off-by: Myungho Jung <mhjungk@gmail.com>
Link: http://lkml.kernel.org/r/1492640690-3550-1-git-send-email-mhjungk@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Kazuhiro Hayashi <kazuhiro3.hayashi@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/sysctl.c
kernel/time/timer.c