unplugged-kernel/drivers/misc/mediatek/performance/boost_ctrl/boostctrl_main.c

34 lines
637 B
C

// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#include <linux/proc_fs.h>
#include "boost_ctrl.h"
int init_boostctrl(struct proc_dir_entry *parent)
{
struct proc_dir_entry *bstctrl_root = NULL;
struct proc_dir_entry *easctrl_root = NULL;
pr_debug("__init %s\n", __func__);
bstctrl_root = proc_mkdir("boost_ctrl", parent);
/* init topology info first */
topo_ctrl_init(bstctrl_root);
cpu_ctrl_init(bstctrl_root);
dram_ctrl_init(bstctrl_root);
/* EAS */
easctrl_root = proc_mkdir("eas_ctrl", bstctrl_root);
uclamp_ctrl_init(easctrl_root);
eas_ctrl_init(easctrl_root);
return 0;
}