Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109039495
D48122.id149088.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
986 B
Referenced Files
None
Subscribers
None
D48122.id149088.diff
View Options
diff --git a/sys/dev/ofw/ofw_cpu.c b/sys/dev/ofw/ofw_cpu.c
--- a/sys/dev/ofw/ofw_cpu.c
+++ b/sys/dev/ofw/ofw_cpu.c
@@ -42,7 +42,7 @@
#include <dev/ofw/ofw_bus_subr.h>
#include <dev/ofw/ofw_cpu.h>
-#if defined(__arm__) || defined(__arm64__) || defined(__riscv__)
+#if defined(__arm__) || defined(__arm64__) || defined(__riscv)
#include <dev/clk/clk.h>
#endif
@@ -206,7 +206,7 @@
phandle_t node;
pcell_t cell;
int rv;
-#if defined(__arm__) || defined(__arm64__) || defined(__riscv__)
+#if defined(__arm__) || defined(__arm64__) || defined(__riscv)
clk_t cpuclk;
uint64_t freq;
#endif
@@ -276,7 +276,7 @@
sc->sc_cpu_pcpu = pcpu_find(device_get_unit(dev));
if (OF_getencprop(node, "clock-frequency", &cell, sizeof(cell)) < 0) {
-#if defined(__arm__) || defined(__arm64__) || defined(__riscv__)
+#if defined(__arm__) || defined(__arm64__) || defined(__riscv)
rv = clk_get_by_ofw_index(dev, 0, 0, &cpuclk);
if (rv == 0) {
rv = clk_get_freq(cpuclk, &freq);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 1, 12:10 AM (20 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15494421
Default Alt Text
D48122.id149088.diff (986 B)
Attached To
Mode
D48122: ofw_cpu: fix __riscv preprocessor check
Attached
Detach File
Event Timeline
Log In to Comment