Messages in this thread Patch in this message | | | From | Hailong Liu <> | Subject | [PATCH] clocksourc: Fix the comments to __clocksource_register_scale | Date | Sat, 6 Mar 2021 20:57:10 +0800 |
| |
From: Hailong Liu <liu.hailong6@zte.com.cn>
The return value of __clocksource_register_scale() is awlays 0, which does not match the comments.
Signed-off-by: Hailong Liu <liu.hailong6@zte.com.cn> --- kernel/time/clocksource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c index cce484a2cc7c..1e1b5df724f4 100644 --- a/kernel/time/clocksource.c +++ b/kernel/time/clocksource.c @@ -909,7 +909,7 @@ EXPORT_SYMBOL_GPL(__clocksource_update_freq_scale); * @scale: Scale factor multiplied against freq to get clocksource hz * @freq: clocksource frequency (cycles per second) divided by scale * - * Returns -EBUSY if registration fails, zero otherwise. + * Returns 0 always. * * This *SHOULD NOT* be called directly! Please use the * clocksource_register_hz() or clocksource_register_khz helper functions. -- 2.17.1
| |