X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Ftime%2Fclocksource.c;h=dadde5361f32df668877aaa8d5a2e56abb5bb9ff;hb=15895b932b8a047a1db7006a4f9ca74485d5a826;hp=912156dd600555a2dd6be6861a80de577b3c9947;hpb=6993fc5bbc5d63ccd55985b39c34417e430e75e9;p=linux-2.6 diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index 912156dd60..dadde5361f 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -231,6 +231,18 @@ void clocksource_resume(void) spin_unlock_irqrestore(&clocksource_lock, flags); } +/** + * clocksource_touch_watchdog - Update watchdog + * + * Update the watchdog after exception contexts such as kgdb so as not + * to incorrectly trip the watchdog. + * + */ +void clocksource_touch_watchdog(void) +{ + clocksource_resume_watchdog(); +} + /** * clocksource_get_next - Returns the selected clocksource * @@ -459,10 +471,10 @@ sysfs_show_available_clocksources(struct sys_device *dev, char *buf) /* * Sysfs setup bits: */ -static SYSDEV_ATTR(current_clocksource, 0600, sysfs_show_current_clocksources, +static SYSDEV_ATTR(current_clocksource, 0644, sysfs_show_current_clocksources, sysfs_override_clocksource); -static SYSDEV_ATTR(available_clocksource, 0600, +static SYSDEV_ATTR(available_clocksource, 0444, sysfs_show_available_clocksources, NULL); static struct sysdev_class clocksource_sysclass = {