diff options
author | john stultz <[email protected]> | 2009-01-21 22:53:22 -0700 |
---|---|---|
committer | Thomas Gleixner <[email protected]> | 2009-06-11 11:24:52 +0200 |
commit | 3f68535adad8dd89499505a65fb25d0e02d118cc (patch) | |
tree | b347c3901d2d590d8c2b8c3be993ef20b278e61f /net/unix/af_unix.c | |
parent | 7d27558c4138ac6b3684dea35c2f4379b940a7dd (diff) |
clocksource: sanity check sysfs clocksource changes
Thomas, Andrew and Ingo pointed out that we don't have any safety checks
in the clocksource sysfs entries to make sure sysadmins don't try to
change the clocksource to a non high-res timer capable clocksource (such
as jiffies) when high-res timers (HRT) is enabled. Doing so will likely
hang a system.
Correct this by filtering non HRT clocksources from available_clocksources
and not accepting non HRT clocksources with HRT enabled.
Signed-off-by: John Stultz <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions