driver/devfreq: DVFS framework for devices
This commit introduces a devfreq framework to manage device frequency
scaling. The framework includes the following features:
1.devfreq governor
- provide governor ops, including init, start, stop, exit
- default governor, performance & powersave
- customized governor, device can provide governor when register
2.runtime register and unregister
- device can runtime register & unregister, search by name
3.suspend and resume
- suspend and resume frequency scaling
4.notify
- register & unregister notifier callback, notify frequency changes
5.qos support
- simplified QoS, manage multiple freq range request
- including init, add/remove/update request, get value
Signed-off-by: guanyi <guanyi@xiaomi.com>
2025-04-02 14:19:24 +08:00
|
|
|
############################################################################
|
|
|
|
|
# drivers/devfreq/Make.defs
|
|
|
|
|
#
|
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
|
# this work for additional information regarding copyright ownership. The
|
|
|
|
|
# ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
|
# "License"); you may not use this file except in compliance with the
|
|
|
|
|
# License. You may obtain a copy of the License at
|
|
|
|
|
#
|
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
#
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
|
# License for the specific language governing permissions and limitations
|
|
|
|
|
# under the License.
|
|
|
|
|
#
|
|
|
|
|
############################################################################
|
|
|
|
|
|
|
|
|
|
# Include devfreq sources
|
|
|
|
|
|
|
|
|
|
ifeq ($(CONFIG_DEVFREQ),y)
|
|
|
|
|
|
|
|
|
|
CSRCS += devfreq.c devfreq_performance.c devfreq_powersave.c devfreq_qos.c
|
|
|
|
|
|
2025-05-16 16:07:54 +08:00
|
|
|
ifeq ($(CONFIG_DEVFREQ_PROCFS),y)
|
|
|
|
|
|
|
|
|
|
CSRCS += devfreq_procfs.c
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
2026-08-08 11:37:55 +08:00
|
|
|
ifeq ($(CONFIG_DEVFREQ_GOV_ONDEMAND),y)
|
|
|
|
|
|
|
|
|
|
CSRCS += devfreq_ondemand.c
|
|
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
driver/devfreq: DVFS framework for devices
This commit introduces a devfreq framework to manage device frequency
scaling. The framework includes the following features:
1.devfreq governor
- provide governor ops, including init, start, stop, exit
- default governor, performance & powersave
- customized governor, device can provide governor when register
2.runtime register and unregister
- device can runtime register & unregister, search by name
3.suspend and resume
- suspend and resume frequency scaling
4.notify
- register & unregister notifier callback, notify frequency changes
5.qos support
- simplified QoS, manage multiple freq range request
- including init, add/remove/update request, get value
Signed-off-by: guanyi <guanyi@xiaomi.com>
2025-04-02 14:19:24 +08:00
|
|
|
DEPPATH += --dep-path devfreq
|
|
|
|
|
VPATH += devfreq
|
|
|
|
|
|
|
|
|
|
endif
|