dtpm_cpu.c (48ee4835b73c48590d05a54730dc8037ebd39d3b) dtpm_cpu.c (b9794a822281944ef3de5b1812a94cbdb8134320)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2020 Linaro Limited
4 *
5 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
6 *
7 * The DTPM CPU is based on the energy model. It hooks the CPU in the
8 * DTPM tree which in turns update the power number by propagating the

--- 255 unchanged lines hidden (view full) ---

264 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "dtpm_cpu:online",
265 cpuhp_dtpm_cpu_online, NULL);
266 if (ret < 0)
267 return ret;
268
269 return 0;
270}
271
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright 2020 Linaro Limited
4 *
5 * Author: Daniel Lezcano <daniel.lezcano@linaro.org>
6 *
7 * The DTPM CPU is based on the energy model. It hooks the CPU in the
8 * DTPM tree which in turns update the power number by propagating the

--- 255 unchanged lines hidden (view full) ---

264 ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "dtpm_cpu:online",
265 cpuhp_dtpm_cpu_online, NULL);
266 if (ret < 0)
267 return ret;
268
269 return 0;
270}
271
272DTPM_DECLARE(dtpm_cpu, dtpm_cpu_init);
272struct dtpm_subsys_ops dtpm_cpu_ops = {
273 .name = KBUILD_MODNAME,
274 .init = dtpm_cpu_init,
275};