您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ tegra_dvfs_rail_disable函数代码示例

51自学网 2021-06-03 08:43:22
  C++
这篇教程C++ tegra_dvfs_rail_disable函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中tegra_dvfs_rail_disable函数的典型用法代码示例。如果您正苦于以下问题:C++ tegra_dvfs_rail_disable函数的具体用法?C++ tegra_dvfs_rail_disable怎么用?C++ tegra_dvfs_rail_disable使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了tegra_dvfs_rail_disable函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: tegra_soc_init_dvfs

void __init tegra_soc_init_dvfs(void){	int i;	struct clk *c;	struct dvfs *d;	int process_id;	int ret;	int cpu_process_id = tegra_cpu_process_id();	int core_process_id = tegra_core_process_id();	int speedo_id = tegra_soc_speedo_id();	BUG_ON(speedo_id >= ARRAY_SIZE(cpu_speedo_nominal_millivolts));	tegra2_dvfs_rail_vdd_cpu.nominal_millivolts =		cpu_speedo_nominal_millivolts[speedo_id];	BUG_ON(speedo_id >= ARRAY_SIZE(core_speedo_nominal_millivolts));	tegra2_dvfs_rail_vdd_core.nominal_millivolts =		core_speedo_nominal_millivolts[speedo_id];	tegra2_dvfs_rail_vdd_aon.nominal_millivolts =		core_speedo_nominal_millivolts[speedo_id];	tegra_dvfs_init_rails(tegra2_dvfs_rails, ARRAY_SIZE(tegra2_dvfs_rails));	tegra_dvfs_add_relationships(tegra2_dvfs_relationships,		ARRAY_SIZE(tegra2_dvfs_relationships));	/*	 * VDD_CORE must always be at least 50 mV higher than VDD_CPU	 * Fill out cpu_core_millivolts based on cpu_millivolts	 */	for (i = 0; i < ARRAY_SIZE(dvfs_init); i++) {		d = &dvfs_init[i];		process_id = strcmp(d->clk_name, "cpu") ?			core_process_id : cpu_process_id;		if ((d->process_id != -1 && d->process_id != process_id) ||		    (d->speedo_id != -1 && d->speedo_id != speedo_id)) {			pr_debug("tegra_dvfs: rejected %s speedo %d,"				" process %d/n", d->clk_name, d->speedo_id,				d->process_id);			continue;		}		c = tegra_get_clock_by_name(d->clk_name);		if (!c) {			pr_debug("tegra_dvfs: no clock found for %s/n",				d->clk_name);			continue;		}		ret = tegra_enable_dvfs_on_clk(c, d);		if (ret)			pr_err("tegra_dvfs: failed to enable dvfs on %s/n",				c->name);	}	if (tegra_dvfs_core_disabled)		tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_core);	if (tegra_dvfs_cpu_disabled)		tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_cpu);}
开发者ID:ryrzy,项目名称:tf101-kernel-harmony,代码行数:60,


示例2: tegra_dvfs_disable_core_cpu

void tegra_dvfs_disable_core_cpu(void){	printk("tegra_dvfs: disable core & cpu dvfs/n");	tegra_dvfs_core_disabled = false;	tegra_dvfs_cpu_disabled = false;	tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_core);	tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_cpu);}
开发者ID:CMODROM,项目名称:SamSung-Galaxy-Tab-10.1-Model-GT-P7510,代码行数:8,


示例3: tegra2_init_dvfs

void __init tegra2_init_dvfs(void){	int i;	struct clk *c;	struct dvfs *d;	int ret;	int cpu_process_id = tegra_cpu_process_id();	tegra_dvfs_init_rails(tegra2_dvfs_rails, ARRAY_SIZE(tegra2_dvfs_rails));	tegra_dvfs_add_relationships(tegra2_dvfs_relationships,		ARRAY_SIZE(tegra2_dvfs_relationships));	/*	 * VDD_CORE must always be at least 50 mV higher than VDD_CPU	 * Fill out cpu_core_millivolts based on cpu_millivolts	 */	for (i = 0; i < ARRAY_SIZE(dvfs_init); i++) {		d = &dvfs_init[i];		if (d->cpu_process_id != -1 &&				d->cpu_process_id != cpu_process_id)			continue;		c = tegra_get_clock_by_name(d->clk_name);		if (!c) {			pr_debug("tegra_dvfs: no clock found for %s/n",				d->clk_name);			continue;		}		ret = tegra_enable_dvfs_on_clk(c, d);		if (ret)			pr_err("tegra_dvfs: failed to enable dvfs on %s/n",				c->name);	}	if (tegra_dvfs_core_disabled)		tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_core);	if (tegra_dvfs_cpu_disabled)		tegra_dvfs_rail_disable(&tegra2_dvfs_rail_vdd_cpu);}
开发者ID:TeamBAMF,项目名称:kernel_ics_tegra,代码行数:42,


示例4: tegra_dvfs_disable_cpu_set

int tegra_dvfs_disable_cpu_set(const char *arg, const struct kernel_param *kp){	int ret;	ret = param_set_bool(arg, kp);	if (ret)		return ret;	if (tegra_dvfs_cpu_disabled)		tegra_dvfs_rail_disable(&tegra3_dvfs_rail_vdd_cpu);	else		tegra_dvfs_rail_enable(&tegra3_dvfs_rail_vdd_cpu);	return 0;}
开发者ID:jareddantis,项目名称:pulsar-kernel_enrc2b,代码行数:15,


示例5: tegra_soc_init_dvfs

void __init tegra_soc_init_dvfs(void){	int cpu_speedo_id = tegra_cpu_speedo_id();	int soc_speedo_id = tegra_soc_speedo_id();	int cpu_process_id = tegra_cpu_process_id();#ifdef CONFIG_TEGRA3_LP_CORE_OVERDRIVE	int core_process_id = 2;#else	int core_process_id = tegra_core_process_id();#endif	int i;	int core_nominal_mv_index;	int cpu_nominal_mv_index;#ifndef CONFIG_TEGRA_CORE_DVFS	tegra_dvfs_core_disabled = true;#endif#ifndef CONFIG_TEGRA_CPU_DVFS	tegra_dvfs_cpu_disabled = true;#endif	/*	 * Find nominal voltages for core (1st) and cpu rails before rail	 * init. Nominal voltage index in the scaling ladder will also be	 * used to determine max dvfs frequency for the respective domains.	 */	core_nominal_mv_index = get_core_nominal_mv_index(soc_speedo_id);	if (core_nominal_mv_index < 0) {		tegra3_dvfs_rail_vdd_core.disabled = true;		tegra_dvfs_core_disabled = true;		core_nominal_mv_index = 0;	}	tegra3_dvfs_rail_vdd_core.nominal_millivolts =		core_millivolts[core_nominal_mv_index];	cpu_nominal_mv_index = get_cpu_nominal_mv_index(		cpu_speedo_id, cpu_process_id, &cpu_dvfs);	BUG_ON((cpu_nominal_mv_index < 0) || (!cpu_dvfs));	tegra3_dvfs_rail_vdd_cpu.nominal_millivolts =		cpu_millivolts[cpu_nominal_mv_index];	/* Init rail structures and dependencies */	tegra_dvfs_init_rails(tegra3_dvfs_rails, ARRAY_SIZE(tegra3_dvfs_rails));	tegra_dvfs_add_relationships(tegra3_dvfs_relationships,		ARRAY_SIZE(tegra3_dvfs_relationships));	/* Search core dvfs table for speedo/process matching entries and	   initialize dvfs-ed clocks */	for (i = 0; i <  ARRAY_SIZE(core_dvfs_table); i++) {		struct dvfs *d = &core_dvfs_table[i];		if (!match_dvfs_one(d, soc_speedo_id, core_process_id))			continue;		init_dvfs_one(d, core_nominal_mv_index);	}	/* Initialize matching cpu dvfs entry already found when nominal	   voltage was determined */	init_dvfs_one(cpu_dvfs, cpu_nominal_mv_index);	init_dvfs_cold(cpu_dvfs, cpu_nominal_mv_index);	/* Finally disable dvfs on rails if necessary */	if (tegra_dvfs_core_disabled)		tegra_dvfs_rail_disable(&tegra3_dvfs_rail_vdd_core);	if (tegra_dvfs_cpu_disabled)		tegra_dvfs_rail_disable(&tegra3_dvfs_rail_vdd_cpu);	pr_info("tegra dvfs: VDD_CPU nominal %dmV, scaling %s/n",		tegra3_dvfs_rail_vdd_cpu.nominal_millivolts,		tegra_dvfs_cpu_disabled ? "disabled" : "enabled");	pr_info("tegra dvfs: VDD_CORE nominal %dmV, scaling %s/n",		tegra3_dvfs_rail_vdd_core.nominal_millivolts,		tegra_dvfs_core_disabled ? "disabled" : "enabled");}
开发者ID:jareddantis,项目名称:pulsar-kernel_enrc2b,代码行数:74,



注:本文中的tegra_dvfs_rail_disable函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ tegra_get_board_info函数代码示例
C++ tegra_dc_writel函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。