mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bhaskar Chowdhury <unixbhaskar@gmail.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org, rdunlap@infradead.org
Subject: Re: [PATCH] kernel: irq: Some words replce with better alternatives in the file timings.c
Date: Sat, 6 Feb 2021 06:00:30 +0530	[thread overview]
Message-ID: <YB3jJuqqy2oms1wm@Gentoo> (raw)
In-Reply-To: <878s828if1.fsf@nanos.tec.linutronix.de>

[-- Attachment #1: Type: text/plain, Size: 2222 bytes --]

On 19:43 Fri 05 Feb 2021, Thomas Gleixner wrote:
>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 ...

Whoops! good catch ....thanks, Tohomas!
>
>> +	 * 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
>
>>  	 * 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
>
>>  	 * 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.
>
>>  	 */
>>  	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.
>
>>   *
>>   * 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.
>
>>  	 * model while decrementing the counter because we consume the
>>  	 * data from our circular buffer.
>>  	 */
>

Can we please forget that this attempt is ever exists :)

>Thanks,
>
>        tglx

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2021-02-06  3:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-05 12:28 Bhaskar Chowdhury
2021-02-05 18:43 ` Thomas Gleixner
2021-02-06  0:30   ` Bhaskar Chowdhury [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YB3jJuqqy2oms1wm@Gentoo \
    --to=unixbhaskar@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rdunlap@infradead.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome