msm-mmrm: Control throttling feature via debugfs
Enable or disable throttling feature by writing correct value to msm_mmrm debugfs. Change-Id: If2b06e061ddd102c42d0f5517d3c0be4fc9f6669 Signed-off-by: Mahesh Kumar Sharma <smahesh@codeaurora.org>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2020-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/slab.h>
|
||||
@@ -8,8 +8,11 @@
|
||||
#include "mmrm_debug.h"
|
||||
|
||||
int msm_mmrm_debug = MMRM_ERR | MMRM_WARN | MMRM_PRINTK;
|
||||
u8 msm_mmrm_enable_throttle_feature = 0;
|
||||
u8 msm_mmrm_allow_multiple_register = 0;
|
||||
|
||||
|
||||
|
||||
#define MAX_DBG_BUF_SIZE 4096
|
||||
|
||||
static ssize_t msm_mmrm_debugfs_info_read(
|
||||
@@ -61,6 +64,7 @@ struct dentry *msm_mmrm_debugfs_init(void)
|
||||
/* add other params here */
|
||||
debugfs_create_u32("debug_level", 0644, dir, &msm_mmrm_debug);
|
||||
debugfs_create_u8("allow_multiple_register", 0644, dir, &msm_mmrm_allow_multiple_register);
|
||||
debugfs_create_u8("enable_throttle_feature", 0644, dir, &msm_mmrm_enable_throttle_feature);
|
||||
|
||||
d_mpr_h("%s: exiting\n", __func__);
|
||||
return dir;
|
||||
|
Reference in New Issue
Block a user