Skip to content

Commit e7e905e

Browse files
hugelgupfklauspost
authored andcommitted
Change TSX function match documentation. (#21)
1 parent 30e4506 commit e7e905e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cpuid.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func (c CPUInfo) CX16() bool {
454454
// TSX is split into HLE (Hardware Lock Elision) and RTM (Restricted Transactional Memory) detection.
455455
// So TSX simply checks that.
456456
func (c CPUInfo) TSX() bool {
457-
return c.Features&(MPX|RTM) == MPX|RTM
457+
return c.Features&(HLE|RTM) == HLE|RTM
458458
}
459459

460460
// Atom indicates an Atom processor

0 commit comments

Comments
 (0)