time: It seems spell mistake
Subsystems (2)
PATCH 1/1 time: It seems spell mistake
Sorry, English is not my native language. I don't known whether my judgement is right or not. Personally, use "than" feels more comfortable.
Signed-off-by Zhen Lei <[email protected]>
--- kernel/time/clocksource.c | 2 +- kernel/time/hrtimer.c | 2 +- kernel/time/timekeeping.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
kernel/time/clocksource.c +1 -1
@@ -479,7 +479,7 @@ static u32 clocksource_max_adjustment(struct clocksource *cs)* return half the number of nanoseconds the hardware counter can technically * cover. This is done so that we can potentially detect problems caused by * delayed timers or bad hardware, which might result in time intervals that -* are larger then what the math used can handle without overflows. +* are larger than what the math used can handle without overflows. */ u64 clocks_calc_max_nsecs (u32 mult,u32 shift,u32 maxadj,u64 mask,u64 *max_cyc) {
kernel/time/hrtimer.c +1 -1
@@ -59,7 +59,7 @@/* * The timer bases: * -* There are more clockids then hrtimer bases. Thus, we index +* There are more clockids than hrtimer bases. Thus, we index * into the timer bases by the hrtimer_base_type enum. When trying * to reach a base using a clockid, hrtimer_clockid_to_base() * is used to convert from clockid to the proper hrtimer_base_type.
kernel/time/timekeeping.c +2 -2
@@ -1667,7 +1667,7 @@ static void timekeeping_adjust(struct timekeeper *tk, s64 offset)/** * accumulate_nsecs_to_secs - Accumulates nsecs into secs * -* Helper function that accumulates a the nsecs greater then a second +* Helper function that accumulates a the nsecs greater than a second * from the xtime_nsec field to the xtime_secs field. * It also calls into the NTP code to handle leapsecond processing. *
@@ -1719,7 +1719,7 @@ static cycle_t logarithmic_accumulation(struct timekeeper *tk, cycle_t offset,cycle_t interval = tk->cycle_interval << shift;u64 raw_nsecs; -/* If the offset is smaller then a shifted interval, do nothing */ +/* If the offset is smaller than a shifted interval, do nothing */ if (offset < interval)return offset;
--
2.5.0
tip-bot for Zhen Lei
merge bot[tip:timers/core] time: Fix spelling in comments
time: Fix spelling in comments
Commit-ID: 922ba733b7fbe6dfb300feaf16d4fa25382c2823 Gitweb: http://git.kernel.org/tip/922ba733b7fbe6dfb300feaf16d4fa25382c2823 Author: Zhen Lei <[email protected]> AuthorDate: Tue, 25 Aug 2015 14:42:53 +0800 Committer: Ingo Molnar <[email protected]> CommitDate: Tue, 25 Aug 2015 09:42:13 +0200
time: Fix spelling in comments
Signed-off-by Zhen Lei <[email protected]>
Cc Hanjun Guo <[email protected]>
Cc John Stultz <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tianhong Ding <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Xinwei Hu <[email protected]>
Cc Xunlei Pang <[email protected]>
Cc Zefan Li <[email protected]>
[ Fixed yet another typo in one of the sentences fixed. ]
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/time/clocksource.c | 2 +- kernel/time/hrtimer.c | 2 +- kernel/time/timekeeping.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
kernel/time/clocksource.c +1 -1
@@ -479,7 +479,7 @@ static u32 clocksource_max_adjustment(struct clocksource *cs)* return half the number of nanoseconds the hardware counter can technically * cover. This is done so that we can potentially detect problems caused by * delayed timers or bad hardware, which might result in time intervals that -* are larger then what the math used can handle without overflows. +* are larger than what the math used can handle without overflows. */ u64 clocks_calc_max_nsecs (u32 mult,u32 shift,u32 maxadj,u64 mask,u64 *max_cyc) {
kernel/time/hrtimer.c +1 -1
@@ -59,7 +59,7 @@/* * The timer bases: * -* There are more clockids then hrtimer bases. Thus, we index +* There are more clockids than hrtimer bases. Thus, we index * into the timer bases by the hrtimer_base_type enum. When trying * to reach a base using a clockid, hrtimer_clockid_to_base() * is used to convert from clockid to the proper hrtimer_base_type.
kernel/time/timekeeping.c +2 -2
@@ -1674,7 +1674,7 @@ static void timekeeping_adjust(struct timekeeper *tk, s64 offset)/** * accumulate_nsecs_to_secs - Accumulates nsecs into secs * -* Helper function that accumulates a the nsecs greater then a second +* Helper function that accumulates the nsecs greater than a second * from the xtime_nsec field to the xtime_secs field. * It also calls into the NTP code to handle leapsecond processing. *
@@ -1726,7 +1726,7 @@ static cycle_t logarithmic_accumulation(struct timekeeper *tk, cycle_t offset,cycle_t interval = tk->cycle_interval << shift;u64 raw_nsecs; -/* If the offset is smaller then a shifted interval, do nothing */ +/* If the offset is smaller than a shifted interval, do nothing */ if (offset < interval)return offset;
tip-bot for Zhen Lei
merge bot[tip:timers/core] time: Fix spelling in comments
In reply to Zhen Leitime: Fix spelling in comments
Commit-ID: 571af55a31d3652ac1f758f116835a76d0335661 Gitweb: http://git.kernel.org/tip/571af55a31d3652ac1f758f116835a76d0335661 Author: Zhen Lei <[email protected]> AuthorDate: Tue, 25 Aug 2015 14:42:53 +0800 Committer: Thomas Gleixner <[email protected]> CommitDate: Tue, 22 Sep 2015 12:54:23 +0200
time: Fix spelling in comments
Signed-off-by Zhen Lei <[email protected]>
Cc Hanjun Guo <[email protected]>
Cc John Stultz <[email protected]>
Cc Linus Torvalds <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc Rafael J. Wysocki <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Tianhong Ding <[email protected]>
Cc Viresh Kumar <[email protected]>
Cc Xinwei Hu <[email protected]>
Cc Xunlei Pang <[email protected]>
Cc Zefan Li <[email protected]>
[ Fixed yet another typo in one of the sentences fixed. ]
Signed-off-by Ingo Molnar <[email protected]>
--- kernel/time/clocksource.c | 2 +- kernel/time/hrtimer.c | 2 +- kernel/time/timekeeping.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-)
kernel/time/clocksource.c +1 -1
@@ -479,7 +479,7 @@ static u32 clocksource_max_adjustment(struct clocksource *cs)* return half the number of nanoseconds the hardware counter can technically * cover. This is done so that we can potentially detect problems caused by * delayed timers or bad hardware, which might result in time intervals that -* are larger then what the math used can handle without overflows. +* are larger than what the math used can handle without overflows. */ u64 clocks_calc_max_nsecs (u32 mult,u32 shift,u32 maxadj,u64 mask,u64 *max_cyc) {
kernel/time/hrtimer.c +1 -1
@@ -59,7 +59,7 @@/* * The timer bases: * -* There are more clockids then hrtimer bases. Thus, we index +* There are more clockids than hrtimer bases. Thus, we index * into the timer bases by the hrtimer_base_type enum. When trying * to reach a base using a clockid, hrtimer_clockid_to_base() * is used to convert from clockid to the proper hrtimer_base_type.
kernel/time/timekeeping.c +2 -2
@@ -1674,7 +1674,7 @@ static void timekeeping_adjust(struct timekeeper *tk, s64 offset)/** * accumulate_nsecs_to_secs - Accumulates nsecs into secs * -* Helper function that accumulates a the nsecs greater then a second +* Helper function that accumulates the nsecs greater than a second * from the xtime_nsec field to the xtime_secs field. * It also calls into the NTP code to handle leapsecond processing. *
@@ -1726,7 +1726,7 @@ static cycle_t logarithmic_accumulation(struct timekeeper *tk, cycle_t offset,cycle_t interval = tk->cycle_interval << shift;u64 raw_nsecs; -/* If the offset is smaller then a shifted interval, do nothing */ +/* If the offset is smaller than a shifted interval, do nothing */ if (offset < interval)return offset;