kernel: irq: Some words replce with better alternatives in the file timings.c
PATCH 1/1 kernel: irq: Some words replce with better alternatives in the file timings.c
Some spelling fixes and replace with other similar meaning words.
--- kernel/irq/timings.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)
kernel/irq/timings.c +7 -7
@@ -478,21 +478,21 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts)/* * The interval type is u64 in order to deal with the same -* type in our computation, that prevent mindfuck issues with +* type in our computation, that prevent mind blowing issues with * overflow, sign and division. */ interval = ts - old_ts;/* * The interrupt triggered more than one second apart, that -* ends the sequence as predictible for our purpose. In this +* ends the sequence as predictable for our purpose. In this * case, assume we have the beginning of a sequence and the -* timestamp is the first value. As it is impossible to +* timestamps is the first value. As it is impossible to * predict anything at this point, return. * -* Note the first timestamp of the sequence will always fall +* Note the first timestamps of the sequence will always fall * in this test because the old_ts is zero. That is what we -* want as we need another timestamp to compute an interval. +* want as we need another timestamps to compute an interval. */ if (interval >=NSEC_PER_SEC ) { irqs->count =0 ;
@@ -523,7 +523,7 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts)* thus the count is reinitialized. * * The array of values **must** be browsed in the time direction, the -* timestamp must increase between an element and the next one. +* timestamps must increase between an element and the next one. * * Returns a nanosec time based estimation of the earliest interrupt, * U64_MAX otherwise.
@@ -556,7 +556,7 @@ u64 irq_timings_next_event(u64 now)* type but with the cost of extra computation in the * interrupt handler hot path. We choose efficiency. * -* Inject measured irq/timestamp to the pattern prediction +* Inject measured irq/timestamps to the pattern prediction * model while decrementing the counter because we consume the * data from our circular buffer. */
--
2.30.0
Bhaskar,
On Fri, Feb 05 2021 at 17:58, Bhaskar Chowdhury wrote:
The correct prefix for this file is:
genirq/timings:
which you can find via: git log kernel/irq/timings.c
Also if you send a patch with spelling fixes then you might take care that your subject line does not contain spelling mistakes ...
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 490
Quoted 4 lines
kernel/irq/timings.c +2
-1+* ends the sequence as predictable for our purpose. In this * case, assume we have the beginning of a sequence and the -* timestamp is the first value. As it is impossible to +* timestamps is the first value. As it is impossible to
timestamp is ... is correct
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 493
Quoted 4 lines
kernel/irq/timings.c +1
-1* predict anything at this point, return. * -* Note the first timestamp of the sequence will always fall +* Note the first timestamps of the sequence will always fall
Same here
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 495
Quoted 3 lines
kernel/irq/timings.c +1
-1* in this test because the old_ts is zero. That is what we -* want as we need another timestamp to compute an interval. +* want as we need another timestamps to compute an interval.
And here.
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 526
Quoted 9 lines
kernel/irq/timings.c +1
-1*/ if (interval >=NSEC_PER_SEC ) { irqs->count =0 ;@@ -523,7 +523,7 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts)* thus the count is reinitialized. * * The array of values **must** be browsed in the time direction, the -* timestamp must increase between an element and the next one. +* timestamps must increase between an element and the next one.
No 's' either.
kernel/irq/timings.c u64 irq_timings_next_event(u64 now) · line 559
Quoted 9 lines
kernel/irq/timings.c +1
-1* * Returns a nanosec time based estimation of the earliest interrupt, * U64_MAX otherwise. @@ -556,7 +556,7 @@ u64 irq_timings_next_event(u64 now)* type but with the cost of extra computation in the * interrupt handler hot path. We choose efficiency. * -* Inject measured irq/timestamp to the pattern prediction +* Inject measured irq/timestamps to the pattern prediction
This one needs the 's', yes.
kernel/irq/timings.c u64 irq_timings_next_event(u64 now) · line 562
Quoted 3 lines
kernel/irq/timings.c +0
-0* model while decrementing the counter because we consume the * data from our circular buffer. */
Thanks,
tglx
Quoted 4 lines · Thomas Gleixner
Bhaskar,
On Fri, Feb 05 2021 at 17:58, Bhaskar Chowdhury wrote:
Quoted 8 lines
The correct prefix for this file is:
genirq/timings:
which you can find via: git log
kernel/irq/timings.cAlso if you send a patch with spelling fixes then you might take care that your subject line does not contain spelling mistakes ...
Whoops! good catch ....thanks, Tohomas!
Quoted 33 lines
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 490
Quoted 5 lines
kernel/irq/timings.c +2
-1+* ends the sequence as predictable for our purpose. In this * case, assume we have the beginning of a sequence and the -* timestamp is the first value. As it is impossible to +* timestamps is the first value. As it is impossible to timestamp is ... is correct
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 493
Quoted 4 lines
kernel/irq/timings.c +1
-1* predict anything at this point, return. * -* Note the first timestamp of the sequence will always fall +* Note the first timestamps of the sequence will always fall Same here
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 495
Quoted 3 lines
kernel/irq/timings.c +1
-1* in this test because the old_ts is zero. That is what we -* want as we need another timestamp to compute an interval. +* want as we need another timestamps to compute an interval. And here.
kernel/irq/timings.c static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · line 526
Quoted 9 lines
kernel/irq/timings.c +1
-1*/ if (interval >=NSEC_PER_SEC ) { irqs->count =0 ;@@ -523,7 +523,7 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts)* thus the count is reinitialized. * * The array of values **must** be browsed in the time direction, the -* timestamp must increase between an element and the next one. +* timestamps must increase between an element and the next one. No 's' either.
Quoted 16 lines
kernel/irq/timings.c u64 irq_timings_next_event(u64 now) · line 559
Quoted 9 lines
kernel/irq/timings.c +1
-1* * Returns a nanosec time based estimation of the earliest interrupt, * U64_MAX otherwise. @@ -556,7 +556,7 @@ u64 irq_timings_next_event(u64 now)* type but with the cost of extra computation in the * interrupt handler hot path. We choose efficiency. * -* Inject measured irq/timestamp to the pattern prediction +* Inject measured irq/timestamps to the pattern prediction This one needs the 's', yes.
Quoted 3 lines
kernel/irq/timings.c +0
-0* model while decrementing the counter because we consume the * data from our circular buffer. */
Can we please forget that this attempt is ever exists :)
Quoted 3 lines
Thanks,
tglx