summaryrefslogtreecommitdiffstats
path: root/arch/s390/lib
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2022-08-29 14:17:28 +0200
committerVasily Gorbik <gor@linux.ibm.com>2022-08-30 22:00:33 +0200
commit9aa10e791c2b722cf166f46424a6a8364164fe12 (patch)
tree07d91bcc399fc0ec0f30d0fad69dba02fc904120 /arch/s390/lib
parents390: move from strlcpy with unused retval to strscpy (diff)
downloadlinux-9aa10e791c2b722cf166f46424a6a8364164fe12.tar.xz
linux-9aa10e791c2b722cf166f46424a6a8364164fe12.zip
s390/delay: sync comment within __delay() with reality
The comment within __delay() is outdated and does not reflect anymore what the function is doing. Therefore replace the comment. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/lib')
-rw-r--r--arch/s390/lib/delay.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/s390/lib/delay.c b/arch/s390/lib/delay.c
index f7f5adea8940..be14c58cb989 100644
--- a/arch/s390/lib/delay.c
+++ b/arch/s390/lib/delay.c
@@ -13,13 +13,10 @@
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
- * yield the megahertz number of the cpu. The important function
- * is udelay and that is done using the tod clock. -- martin.
- */
+ /*
+ * Loop 'loops' times. Callers must not assume a specific
+ * amount of time passes before this function returns.
+ */
asm volatile("0: brct %0,0b" : : "d" ((loops/2) + 1));
}
EXPORT_SYMBOL(__delay);