Skip to content

Commit

Permalink
topology: Use specialised compare for CPUSet
Browse files Browse the repository at this point in the history
Signed-off-by: Pau Ruiz Safont <[email protected]>
  • Loading branch information
psafont committed Jan 30, 2025
1 parent 51397f5 commit 2735b54
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ocaml/xenopsd/lib/topology.ml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
module D = Debug.Make (struct let name = "topology" end)

module CPUSet = struct
include Set.Make (struct
type t = int

let compare (x : int) (y : int) = compare x y
end)
include Set.Make (Int)

let pp_dump = Fmt.using to_seq Fmt.(Dump.seq int)

Expand Down

0 comments on commit 2735b54

Please sign in to comment.