Skip to content

Commit 5c95fe8

Browse files
zx2c4chenhuacai
authored andcommitted
LoongArch: Remove MIPS comment about cycle counter
This comment block was taken originally from the MIPS architecture code, where indeed there are particular assumptions one can make regarding SMP and !SMP and cycle counters. On LoongArch, however, the rdtime family of functions is always available. As Xuerui wrote: The rdtime family of instructions is in fact guaranteed to be available on LoongArch; LoongArch's subsets all contain them, even the 32-bit "Primary" subset intended for university teaching -- they provide the rdtimeh.w and rdtimel.w pair of instructions that access the same 64-bit counter. So this commit simply removes the incorrect comment block. Link: https://lore.kernel.org/lkml/e78940bc-9be2-2fe7-026f-9e64a1416c9f@xen0n.name/ Fixes: b738c10 ("LoongArch: Add other common headers") Reviewed-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
1 parent 0626e1c commit 5c95fe8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

arch/loongarch/include/asm/timex.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,6 @@
1212
#include <asm/cpu.h>
1313
#include <asm/cpu-features.h>
1414

15-
/*
16-
* Standard way to access the cycle counter.
17-
* Currently only used on SMP for scheduling.
18-
*
19-
* We know that all SMP capable CPUs have cycle counters.
20-
*/
21-
2215
typedef unsigned long cycles_t;
2316

2417
#define get_cycles get_cycles

0 commit comments

Comments
 (0)