2026-01-29 22:25:33 +08:00

28 lines
873 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Common code for QOS-aware smart grid Scheduling
*
* Copyright (C) 2023-2024 Huawei Technologies Co., Ltd
*
* Author: Wang Shaobo <bobo.shaobowang@huawei.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*/
#include <linux/sched/grid_qos.h>
#include "internal.h"
void qos_power_init(struct sched_grid_qos_power *power)
{
power->cpufreq_sense_ratio = 0;
power->target_cpufreq = 0;
power->cstate_sense_ratio = 0;
}