当前位置: 首页>>代码示例>>C++>>正文


C++ reset_cpu_stall_ticks函数代码示例

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


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

示例1: rcu_init

void __init rcu_init(void)
{
	open_softirq(RCU_SOFTIRQ, rcu_process_callbacks);
	RCU_TRACE(reset_cpu_stall_ticks(&rcu_sched_ctrlblk));
	RCU_TRACE(reset_cpu_stall_ticks(&rcu_bh_ctrlblk));

	rcu_early_boot_tests();
}
开发者ID:acton393,项目名称:linux,代码行数:8,代码来源:tiny.c

示例2: rcu_qsctr_help

/*
 * Helper function for rcu_sched_qs() and rcu_bh_qs().
 * Also irqs are disabled to avoid confusion due to interrupt handlers
 * invoking call_rcu().
 */
static int rcu_qsctr_help(struct rcu_ctrlblk *rcp)
{
	RCU_TRACE(reset_cpu_stall_ticks(rcp));
	if (rcp->rcucblist != NULL && rcp->donetail != rcp->curtail) {
		rcp->donetail = rcp->curtail;
		return 1;
	}

	return 0;
}
开发者ID:agroce,项目名称:cbmcmutate,代码行数:15,代码来源:COVER_mutant100145_mytiny.c

示例3: rcu_qsctr_help

/*
 * Helper function for rcu_sched_qs() and rcu_bh_qs().
 * Also irqs are disabled to avoid confusion due to interrupt handlers
 * invoking call_rcu().
 */
static int rcu_qsctr_help(struct rcu_ctrlblk *rcp)
{
	RCU_TRACE(reset_cpu_stall_ticks(rcp));
 mutant_covered = 1;
 /* MUTANT (rep_op) */	if (rcp->rcucblist != NULL && rcp->donetail == rcp->curtail) {
		rcp->donetail = rcp->curtail;
		return 1;
	}

	return 0;
}
开发者ID:agroce,项目名称:cbmcmutate,代码行数:16,代码来源:COVER_mutant100099_mytiny.c

示例4: rcu_qsctr_help

/*
 * Helper function for rcu_sched_qs() and rcu_bh_qs().
 * Also irqs are disabled to avoid confusion due to interrupt handlers
 * invoking call_rcu().
 */
static int rcu_qsctr_help(struct rcu_ctrlblk *rcp)
{
	RCU_TRACE(reset_cpu_stall_ticks(rcp));
	if (rcp->rcucblist != NULL &&
	    rcp->donetail != rcp->curtail) {
		rcp->donetail = rcp->curtail;
 /* MUTANT (rep_const) */		return ((1)+1);
	}

	return 0;
}
开发者ID:agroce,项目名称:cbmcmutate,代码行数:16,代码来源:mutant100101_tiny.c

示例5: rcu_qsctr_help

/*
 * Helper function for rcu_sched_qs() and rcu_bh_qs().
 * Also irqs are disabled to avoid confusion due to interrupt handlers
 * invoking call_rcu().
 */
static int rcu_qsctr_help(struct rcu_ctrlblk *rcp)
{
	RCU_TRACE(reset_cpu_stall_ticks(rcp));
	if (rcp->rcucblist != NULL && rcp->donetail != rcp->curtail) {
		if (!__covered8) {__covered8 = 1; total_covered += 1;}
		rcp->donetail = rcp->curtail;
 mutant_covered = 1;
 /* MUTANT (rep_const) */		return ((1)+1);
	}

	return 0;
}
开发者ID:agroce,项目名称:cbmcmutate,代码行数:17,代码来源:BRANCHCOV_mutant100105_mytiny.c


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