⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dpm_init

📁 Linux下动态电源管理(Dynamic Power Management)的用户守护进程
💻
字号:
#!/bin/sh# Example DPM setup script for Ingenic jz47xx boards## 2005 (c) Ingenic Semiconductor## This file is licensed under  the terms of the GNU General Public # License version 2. This program is licensed "as is" without any # warranty of any kind, whether express or implied.if [ ! -f /proc/driver/dpm/cmd ]then   echo "$0: DPM proc filesystem not present."   echo "May need to enable CONFIG_DPM."   exitfi# Init DPMecho terminate > /proc/driver/dpm/cmdecho init      > /proc/driver/dpm/cmd# Create operating points# create_opt <name> <Voltage> <NF> <NR> <NO> <ICLK_DIV> <SCLK_DIV> <MCLK_DIV> <PCLK_DIV>## <name> is the name of the operating point.# <Voltage> is not used.# PLL_OUT = 3686400 * <NF> / (<NR> * <NO>)# ICLK = PLL_OUT / <ICLK_DIV># SCLK = PLL_OUT / <SCLK_DIV># MCLK = PLL_OUT / <MCLK_DIV># PCLK = PLL_OUT / <PCLK_DIV>#echo create_opt opt_350 0  190  2  1  1  3  3  3  > /proc/driver/dpm/cmdecho create_opt opt_175 0  190  2  1  2  6  6  6  > /proc/driver/dpm/cmdecho create_opt opt_58  0  190  2  1  6  12 12 12  > /proc/driver/dpm/cmd# Create classesecho create_class cls_350 opt_350 > /proc/driver/dpm/cmdecho create_class cls_175 opt_175 > /proc/driver/dpm/cmdecho create_class cls_58  opt_58  > /proc/driver/dpm/cmd# Create policiesecho "create_policy 350 cls_350 cls_350 cls_350 cls_350" \                        "cls_350 cls_350 cls_350 cls_350" \			"cls_350" \			"cls_350 cls_350 cls_350 cls_350" > /proc/driver/dpm/cmdecho "create_policy 175 cls_175 cls_175 cls_175 cls_175" \                        "cls_175 cls_175 cls_175 cls_175" \			"cls_175" \			"cls_175 cls_175 cls_175 cls_175" > /proc/driver/dpm/cmdecho "create_policy 58 cls_58 cls_58 cls_58 cls_58" \                        "cls_58 cls_58 cls_58 cls_58" \			"cls_58" \			"cls_58 cls_58 cls_58 cls_58" > /proc/driver/dpm/cmd

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -