Skip to content

Commit 2dd0957

Browse files
Automatic merge of 'next' into merge (2024-12-13 09:03)
2 parents 1602574 + 3a7a53c commit 2dd0957

File tree

4 files changed

+5
-31
lines changed

4 files changed

+5
-31
lines changed

arch/powerpc/include/asm/time.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static inline unsigned long tb_ticks_since(unsigned long tstamp)
8686
#define mulhdu(x,y) \
8787
({unsigned long z; asm ("mulhdu %0,%1,%2" : "=r" (z) : "r" (x), "r" (y)); z;})
8888
#else
89-
extern u64 mulhdu(u64, u64);
89+
#define mulhdu(x, y) mul_u64_u64_shr(x, y, 64)
9090
#endif
9191

9292
extern void div128_by_32(u64 dividend_high, u64 dividend_low,

arch/powerpc/kernel/misc_32.S

-26
Original file line numberDiff line numberDiff line change
@@ -27,32 +27,6 @@
2727

2828
.text
2929

30-
/*
31-
* This returns the high 64 bits of the product of two 64-bit numbers.
32-
*/
33-
_GLOBAL(mulhdu)
34-
cmpwi r6,0
35-
cmpwi cr1,r3,0
36-
mr r10,r4
37-
mulhwu r4,r4,r5
38-
beq 1f
39-
mulhwu r0,r10,r6
40-
mullw r7,r10,r5
41-
addc r7,r0,r7
42-
addze r4,r4
43-
1: beqlr cr1 /* all done if high part of A is 0 */
44-
mullw r9,r3,r5
45-
mulhwu r10,r3,r5
46-
beq 2f
47-
mullw r0,r3,r6
48-
mulhwu r8,r3,r6
49-
addc r7,r0,r7
50-
adde r4,r4,r8
51-
addze r10,r10
52-
2: addc r4,r4,r9
53-
addze r3,r10
54-
blr
55-
5630
/*
5731
* reloc_got2 runs through the .got2 section adding an offset
5832
* to each entry.

arch/powerpc/xmon/xmon.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -2623,9 +2623,9 @@ static void dump_one_paca(int cpu)
26232623

26242624
printf("paca for cpu 0x%x @ %px:\n", cpu, p);
26252625

2626-
printf(" %-*s = %s\n", 25, "possible", cpu_possible(cpu) ? "yes" : "no");
2627-
printf(" %-*s = %s\n", 25, "present", cpu_present(cpu) ? "yes" : "no");
2628-
printf(" %-*s = %s\n", 25, "online", cpu_online(cpu) ? "yes" : "no");
2626+
printf(" %-*s = %s\n", 25, "possible", str_yes_no(cpu_possible(cpu)));
2627+
printf(" %-*s = %s\n", 25, "present", str_yes_no(cpu_present(cpu)));
2628+
printf(" %-*s = %s\n", 25, "online", str_yes_no(cpu_online(cpu)));
26292629

26302630
#define DUMP(paca, name, format) \
26312631
printf(" %-*s = "format"\t(0x%lx)\n", 25, #name, 18, paca->name, \

tools/testing/selftests/powerpc/vphn/test-vphn.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static struct test {
275275
}
276276
},
277277
{
278-
/* Parse a 32-bit value split accross two consecutives 64-bit
278+
/* Parse a 32-bit value split across two consecutives 64-bit
279279
* input values.
280280
*/
281281
"vphn: 16-bit value followed by 2 x 32-bit values",

0 commit comments

Comments
 (0)