HomeFreeBSD

ofw_cpu: fix __riscv preprocessor check

Description

ofw_cpu: fix __riscv preprocessor check

The canonical name is riscv, not riscv__. Newer compilers no longer
emit the latter.

This re-enables finding the nominal frequency from the CPU's clock.

I checked, and there are no remaining mistakes like this in the tree.

Reviewed by: jrtc27, imp, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48122

Details

Provenance
mhorneAuthored on Fri, Jan 10, 6:46 PM
Reviewer
jrtc27
Differential Revision
D48122: ofw_cpu: fix __riscv preprocessor check
Parents
rG9eb30ef4b7a0: riscv: enable Allwinner D1 USB drivers
Branches
Unknown
Tags
Unknown