linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] s390/delay: Fix comment typo
@ 2022-07-15  4:36 Jason Wang
  2022-07-19 18:22 ` Alexander Gordeev
  0 siblings, 1 reply; 3+ messages in thread
From: Jason Wang @ 2022-07-15  4:36 UTC (permalink / raw)
  To: svens
  Cc: hca, gor, agordeev, borntraeger, linux-s390, linux-kernel, Jason Wang

The double `that' is duplicated in line 19, remove one.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 arch/s390/lib/delay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c
index f7f5adea8940..c32bc8f7c1fd 100644
--- a/arch/s390/lib/delay.c
+++ b/arch/s390/lib/delay.c
@@ -16,7 +16,7 @@ void __delay(unsigned long loops)
         /*
          * To end the bloody studid and useless discussion about the
          * BogoMips number I took the liberty to define the __delay
-         * function in a way that that resulting BogoMips number will
+         * function in a way that resulting BogoMips number will
          * yield the megahertz number of the cpu. The important function
          * is udelay and that is done using the tod clock. -- martin.
          */
-- 
2.35.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] s390/delay: Fix comment typo
  2022-07-15  4:36 [PATCH] s390/delay: Fix comment typo Jason Wang
@ 2022-07-19 18:22 ` Alexander Gordeev
  2022-07-20  9:23   ` Heiko Carstens
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Gordeev @ 2022-07-19 18:22 UTC (permalink / raw)
  To: Jason Wang; +Cc: svens, hca, gor, borntraeger, linux-s390, linux-kernel

On Fri, Jul 15, 2022 at 12:36:10PM +0800, Jason Wang wrote:
> The double `that' is duplicated in line 19, remove one.
> 
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
>  arch/s390/lib/delay.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c
> index f7f5adea8940..c32bc8f7c1fd 100644
> --- a/arch/s390/lib/delay.c
> +++ b/arch/s390/lib/delay.c
> @@ -16,7 +16,7 @@ void __delay(unsigned long loops)
>          /*
>           * To end the bloody studid and useless discussion about the
>           * BogoMips number I took the liberty to define the __delay
> -         * function in a way that that resulting BogoMips number will
> +         * function in a way that resulting BogoMips number will
>           * yield the megahertz number of the cpu. The important function
>           * is udelay and that is done using the tod clock. -- martin.
>           */

Applied, thanks!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] s390/delay: Fix comment typo
  2022-07-19 18:22 ` Alexander Gordeev
@ 2022-07-20  9:23   ` Heiko Carstens
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Carstens @ 2022-07-20  9:23 UTC (permalink / raw)
  To: Alexander Gordeev
  Cc: Jason Wang, svens, gor, borntraeger, linux-s390, linux-kernel

On Tue, Jul 19, 2022 at 08:22:15PM +0200, Alexander Gordeev wrote:
> On Fri, Jul 15, 2022 at 12:36:10PM +0800, Jason Wang wrote:
> > The double `that' is duplicated in line 19, remove one.
> > 
> > Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> > ---
> >  arch/s390/lib/delay.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c
> > index f7f5adea8940..c32bc8f7c1fd 100644
> > --- a/arch/s390/lib/delay.c
> > +++ b/arch/s390/lib/delay.c
> > @@ -16,7 +16,7 @@ void __delay(unsigned long loops)
> >          /*
> >           * To end the bloody studid and useless discussion about the
> >           * BogoMips number I took the liberty to define the __delay
> > -         * function in a way that that resulting BogoMips number will
> > +         * function in a way that resulting BogoMips number will
> >           * yield the megahertz number of the cpu. The important function
> >           * is udelay and that is done using the tod clock. -- martin.
> >           */
> 
> Applied, thanks!

Ahem :) That should have been actually "fixed" to "that the", instead
of removing the double "that". And by the way, just two lines above is
another obvious typo...

But seriously, the whole comment is entirely outdated and simply
wrong.  We don't use __delay() to calculate the BogoMips number, nor
does the function return a value that correlates with the megahertz
number of the cpu nowadays. It just loops a random time (where the cpu
is free to detect the pointless loop and optimize it away anyway).

So the right thing to do would be to remove the complete comment, and
maybe add a new comment - but please don't apply this patch.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-20  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-15  4:36 [PATCH] s390/delay: Fix comment typo Jason Wang
2022-07-19 18:22 ` Alexander Gordeev
2022-07-20  9:23   ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).