Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 45dfe237 authored by David S. Miller's avatar David S. Miller
Browse files

sparc64: Use fsrc2 instead of fsrc1 in sparc64 hash crypto drivers.



On SPARC-T4 fsrc2 has 1 cycle of latency, whereas fsrc1 has 11 cycles.

True story.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 81658ad0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ ENTRY(md5_sparc64_transform)
	.word	0x81b02800

	subcc	%o2, 1, %o2
	fsrc1	%f26, %f10
	fsrc2	%f26, %f10
	bne,pt	%xcc, 1b
	 add	%o1, 0x40, %o1

+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ ENTRY(sha1_sparc64_transform)
	.word	0x81b02820

	subcc	%o2, 1, %o2
	fsrc1	%f26, %f10
	fsrc2	%f26, %f10
	bne,pt	%xcc, 1b
	 add	%o1, 0x40, %o1

+1 −1
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ ENTRY(sha256_sparc64_transform)
	.word	0x81b02840

	subcc	%o2, 1, %o2
	fsrc1	%f26, %f10
	fsrc2	%f26, %f10
	bne,pt	%xcc, 1b
	 add	%o1, 0x40, %o1

+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ ENTRY(sha512_sparc64_transform)
	.word	0x81b02860

	subcc	%o2, 1, %o2
	fsrc1	%f50, %f18
	fsrc2	%f50, %f18
	bne,pt	%xcc, 1b
	 add	%o1, 0x80, %o1