diff options
| author | Viresh Kumar <[email protected]> | 2025-01-08 10:48:38 +0000 |
|---|---|---|
| committer | Viresh Kumar <[email protected]> | 2025-05-20 04:34:06 +0000 |
| commit | 3accb57d56a9bcf1cab1e908e88a235e899a2e82 (patch) | |
| tree | 50a19cc07870a44da08286d54b037fc2ecb4d7ce /rust/helpers/helpers.c | |
| parent | rust: macros: enable use of hyphens in module names (diff) | |
| download | kernel-3accb57d56a9bcf1cab1e908e88a235e899a2e82.tar.gz kernel-3accb57d56a9bcf1cab1e908e88a235e899a2e82.zip | |
rust: cpu: Add from_cpu()
This implements cpu::from_cpu(), which returns a reference to
Device for a CPU. The C struct is created at initialization time for
CPUs and is never freed and so ARef isn't returned from this function.
The new helper will be used by Rust based cpufreq drivers.
Signed-off-by: Viresh Kumar <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
