Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109005975
D43038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
749 B
Referenced Files
None
Subscribers
None
D43038.diff
View Options
diff --git a/sys/dev/firmware/arm/scmi_clk.c b/sys/dev/firmware/arm/scmi_clk.c
--- a/sys/dev/firmware/arm/scmi_clk.c
+++ b/sys/dev/firmware/arm/scmi_clk.c
@@ -55,7 +55,7 @@
int clock_id;
};
-static int __unused
+static int
scmi_clk_get_rate(struct scmi_clk_softc *sc, int clk_id, uint64_t *rate)
{
struct scmi_clk_rate_get_out out;
@@ -154,8 +154,18 @@
static int
scmi_clknode_recalc_freq(struct clknode *clk, uint64_t *freq)
{
+ struct scmi_clknode_softc *clk_sc;
+ struct scmi_clk_softc *sc;
+ uint64_t rate;
+ int ret;
- return (0);
+ clk_sc = clknode_get_softc(clk);
+ sc = device_get_softc(clk_sc->dev);
+ ret = scmi_clk_get_rate(sc, clk_sc->clock_id, &rate);
+ if (ret == 0)
+ *freq = rate;
+
+ return (ret);
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 31, 1:29 PM (11 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16364092
Default Alt Text
D43038.diff (749 B)
Attached To
Mode
D43038: scmi: Implement scmi_clknode_recalc_freq method
Attached
Detach File
Event Timeline
Log In to Comment