當前位置: 首頁>>代碼示例>>C++>>正文


C++ BTFIXUP_CALL函數代碼示例

本文整理匯總了C++中BTFIXUP_CALL函數的典型用法代碼示例。如果您正苦於以下問題:C++ BTFIXUP_CALL函數的具體用法?C++ BTFIXUP_CALL怎麽用?C++ BTFIXUP_CALL使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了BTFIXUP_CALL函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: smp_flush_page_to_ram

void smp_flush_page_to_ram(unsigned long page)
{
#if 1
	xc1((smpfunc_t) BTFIXUP_CALL(local_flush_page_to_ram), page);
#endif
	local_flush_page_to_ram(page);
}
開發者ID:DirtyDroidX,項目名稱:android_kernel_htc_m8ul,代碼行數:7,代碼來源:smp_32.c

示例2: smp_flush_cache_mm

void smp_flush_cache_mm(struct mm_struct *mm)
{
	if(mm->context != NO_CONTEXT) {
		if(mm->cpu_vm_mask != (1 << smp_processor_id()))
			xc1((smpfunc_t) BTFIXUP_CALL(local_flush_cache_mm), (unsigned long) mm);
		local_flush_cache_mm(mm);
	}
}
開發者ID:SimonKagstrom,項目名稱:mci500h-linux-2.4.27,代碼行數:8,代碼來源:smp.c

示例3: smp_flush_sig_insns

void smp_flush_sig_insns(struct mm_struct *mm, unsigned long insn_addr)
{
	cpumask_t cpu_mask = mm->cpu_vm_mask;
	cpu_clear(smp_processor_id(), cpu_mask);
	if (!cpus_empty(cpu_mask))
		xc2((smpfunc_t) BTFIXUP_CALL(local_flush_sig_insns), (unsigned long) mm, insn_addr);
	local_flush_sig_insns(mm, insn_addr);
}
開發者ID:maliyu,項目名稱:SOM2416,代碼行數:8,代碼來源:smp.c

示例4: arch_send_call_function_ipi_mask

void arch_send_call_function_ipi_mask(const struct cpumask *mask)
{
	int cpu;

	/*                                   */
	for_each_cpu(cpu, mask)
		BTFIXUP_CALL(smp_ipi_mask_one)(cpu);
}
開發者ID:romanbb,項目名稱:android_kernel_lge_d851,代碼行數:8,代碼來源:smp_32.c

示例5: smp_send_reschedule

void smp_send_reschedule(int cpu)
{
	/*
	 * CPU model dependent way of implementing IPI generation targeting
	 * a single CPU. The trap handler needs only to do trap entry/return
	 * to call schedule.
	 */
	BTFIXUP_CALL(smp_ipi_resched)(cpu);
}
開發者ID:daeiron,項目名稱:LG_G3_Kernel,代碼行數:9,代碼來源:smp_32.c

示例6: smp_flush_sig_insns

void smp_flush_sig_insns(struct mm_struct *mm, unsigned long insn_addr)
{
	cpumask_t cpu_mask;
	cpumask_copy(&cpu_mask, mm_cpumask(mm));
	cpumask_clear_cpu(smp_processor_id(), &cpu_mask);
	if (!cpumask_empty(&cpu_mask))
		xc2((smpfunc_t) BTFIXUP_CALL(local_flush_sig_insns), (unsigned long) mm, insn_addr);
	local_flush_sig_insns(mm, insn_addr);
}
開發者ID:romanbb,項目名稱:android_kernel_lge_d851,代碼行數:9,代碼來源:smp_32.c

示例7: smp_flush_tlb_range

void smp_flush_tlb_range(struct mm_struct *mm, unsigned long start,
			 unsigned long end)
{
	if(mm->context != NO_CONTEXT) {
		if(mm->cpu_vm_mask != (1 << smp_processor_id()))
			xc3((smpfunc_t) BTFIXUP_CALL(local_flush_tlb_range), (unsigned long) mm, start, end);
		local_flush_tlb_range(mm, start, end);
	}
}
開發者ID:SimonKagstrom,項目名稱:mci500h-linux-2.4.27,代碼行數:9,代碼來源:smp.c

示例8: smp_send_reschedule

void smp_send_reschedule(int cpu)
{
	/*
                                                                    
                                                                     
                     
  */
	BTFIXUP_CALL(smp_ipi_resched)(cpu);
}
開發者ID:romanbb,項目名稱:android_kernel_lge_d851,代碼行數:9,代碼來源:smp_32.c

示例9: smp_flush_tlb_page

void smp_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
{
	struct mm_struct *mm = vma->vm_mm;

	if(mm->context != NO_CONTEXT) {
		if(mm->cpu_vm_mask != (1 << smp_processor_id()))
			xc2((smpfunc_t) BTFIXUP_CALL(local_flush_tlb_page), (unsigned long) vma, page);
		local_flush_tlb_page(vma, page);
	}
}
開發者ID:SimonKagstrom,項目名稱:mci500h-linux-2.4.27,代碼行數:10,代碼來源:smp.c

示例10: smp_flush_cache_mm

void smp_flush_cache_mm(struct mm_struct *mm)
{
	if(mm->context != NO_CONTEXT) {
		cpumask_t cpu_mask = mm->cpu_vm_mask;
		cpu_clear(smp_processor_id(), cpu_mask);
		if (!cpus_empty(cpu_mask))
			xc1((smpfunc_t) BTFIXUP_CALL(local_flush_cache_mm), (unsigned long) mm);
		local_flush_cache_mm(mm);
	}
}
開發者ID:maliyu,項目名稱:SOM2416,代碼行數:10,代碼來源:smp.c

示例11: smp_flush_cache_mm

void smp_flush_cache_mm(struct mm_struct *mm)
{
	if(mm->context != NO_CONTEXT) {
		cpumask_t cpu_mask;
		cpumask_copy(&cpu_mask, mm_cpumask(mm));
		cpumask_clear_cpu(smp_processor_id(), &cpu_mask);
		if (!cpumask_empty(&cpu_mask))
			xc1((smpfunc_t) BTFIXUP_CALL(local_flush_cache_mm), (unsigned long) mm);
		local_flush_cache_mm(mm);
	}
}
開發者ID:romanbb,項目名稱:android_kernel_lge_d851,代碼行數:11,代碼來源:smp_32.c

示例12: smp_flush_tlb_mm

void smp_flush_tlb_mm(struct mm_struct *mm)
{
	if(mm->context != NO_CONTEXT) {
		if(mm->cpu_vm_mask != (1 << smp_processor_id())) {
			xc1((smpfunc_t) BTFIXUP_CALL(local_flush_tlb_mm), (unsigned long) mm);
			if(atomic_read(&mm->mm_users) == 1 && current->active_mm == mm)
				mm->cpu_vm_mask = (1 << smp_processor_id());
		}
		local_flush_tlb_mm(mm);
	}
}
開發者ID:SimonKagstrom,項目名稱:mci500h-linux-2.4.27,代碼行數:11,代碼來源:smp.c

示例13: smp_flush_tlb_page

void smp_flush_tlb_page(struct vm_area_struct *vma, unsigned long page)
{
	struct mm_struct *mm = vma->vm_mm;

	if(mm->context != NO_CONTEXT) {
		cpumask_t cpu_mask = mm->cpu_vm_mask;
		cpu_clear(smp_processor_id(), cpu_mask);
		if (!cpus_empty(cpu_mask))
			xc2((smpfunc_t) BTFIXUP_CALL(local_flush_tlb_page), (unsigned long) vma, page);
		local_flush_tlb_page(vma, page);
	}
}
開發者ID:maliyu,項目名稱:SOM2416,代碼行數:12,代碼來源:smp.c

示例14: smp_flush_cache_page

void smp_flush_cache_page(struct vm_area_struct *vma, unsigned long page)
{
	struct mm_struct *mm = vma->vm_mm;

	if(mm->context != NO_CONTEXT) {
		cpumask_t cpu_mask;
		cpumask_copy(&cpu_mask, mm_cpumask(mm));
		cpumask_clear_cpu(smp_processor_id(), &cpu_mask);
		if (!cpumask_empty(&cpu_mask))
			xc2((smpfunc_t) BTFIXUP_CALL(local_flush_cache_page), (unsigned long) vma, page);
		local_flush_cache_page(vma, page);
	}
}
開發者ID:romanbb,項目名稱:android_kernel_lge_d851,代碼行數:13,代碼來源:smp_32.c

示例15: smp_flush_page_to_ram

void smp_flush_page_to_ram(unsigned long page)
{
	/* Current theory is that those who call this are the one's
	 * who have just dirtied their cache with the pages contents
	 * in kernel space, therefore we only run this on local cpu.
	 *
	 * XXX This experiment failed, research further... -DaveM
	 */
#if 1
	xc1((smpfunc_t) BTFIXUP_CALL(local_flush_page_to_ram), page);
#endif
	local_flush_page_to_ram(page);
}
開發者ID:daeiron,項目名稱:LG_G3_Kernel,代碼行數:13,代碼來源:smp_32.c


注:本文中的BTFIXUP_CALL函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。