亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? irq.c

?? 該文件是rt_linux
?? C
字號:
/* *  arch/s390/kernel/irq.c * *  S390 version *    Copyright (C) 1999,2000 IBM Deutschland Entwicklung GmbH, IBM Corporation *    Author(s): Ingo Adlung (adlung@de.ibm.com) * *  Derived from "arch/i386/kernel/irq.c" *    Copyright (C) 1992, 1999 Linus Torvalds, Ingo Molnar * *  S/390 I/O interrupt processing and I/O request processing is *   implemented in arch/s390/kernel/s390io.c */#include <linux/module.h>#include <linux/config.h>#include <linux/ptrace.h>#include <linux/errno.h>#include <linux/kernel_stat.h>#include <linux/signal.h>#include <linux/sched.h>#include <linux/ioport.h>#include <linux/interrupt.h>#include <linux/timex.h>#include <linux/slab.h>#include <linux/string.h>#include <linux/random.h>#include <linux/smp.h>#include <linux/threads.h>#include <linux/smp_lock.h>#include <linux/init.h>#include <asm/system.h>#include <asm/io.h>#include <asm/irq.h>#include <asm/bitops.h>#include <asm/smp.h>#include <asm/pgtable.h>#include <asm/delay.h>#include <asm/lowcore.h>void          s390_init_IRQ   ( void );void          s390_free_irq   ( unsigned int irq, void *dev_id);int           s390_request_irq( unsigned int irq,                     void           (*handler)(int, void *, struct pt_regs *),                     unsigned long  irqflags,                     const char    *devname,                     void          *dev_id);#if 0/* * The following vectors are part of the Linux architecture, there * is no hardware IRQ pin equivalent for them, they are triggered * through the ICC by us (IPIs), via smp_message_pass(): */BUILD_SMP_INTERRUPT(reschedule_interrupt)BUILD_SMP_INTERRUPT(invalidate_interrupt)BUILD_SMP_INTERRUPT(stop_cpu_interrupt)BUILD_SMP_INTERRUPT(mtrr_interrupt)BUILD_SMP_INTERRUPT(spurious_interrupt)#endif/* * Global interrupt locks for SMP. Allow interrupts to come in on any * CPU, yet make cli/sti act globally to protect critical regions.. */#ifdef CONFIG_SMPatomic_t global_irq_holder = ATOMIC_INIT(NO_PROC_ID);atomic_t global_irq_lock = ATOMIC_INIT(0);atomic_t global_irq_count = ATOMIC_INIT(0);atomic_t global_bh_count;/* * "global_cli()" is a special case, in that it can hold the * interrupts disabled for a longish time, and also because * we may be doing TLB invalidates when holding the global * IRQ lock for historical reasons. Thus we may need to check * SMP invalidate events specially by hand here (but not in * any normal spinlocks) * * Thankfully we don't need this as we can deliver flush tlbs with * interrupts disabled DJB :-) */#define check_smp_invalidate(cpu)static void show(char * str){	int i;	unsigned long *stack;	int cpu = smp_processor_id();	printk("\n%s, CPU %d:\n", str, cpu);	printk("irq:  %d [%d]\n",	       atomic_read(&global_irq_count),local_irq_count(smp_processor_id()));	printk("bh:   %d [%d]\n",	       atomic_read(&global_bh_count),local_bh_count(smp_processor_id()));	stack = (unsigned long *) &str;	for (i = 40; i ; i--) {		unsigned long x = *++stack;		if (x > (unsigned long) &init_task_union && x < (unsigned long) &vsprintf) {			printk("<[%08lx]> ", x);		}	}}#define MAXCOUNT 100000000static inline void wait_on_bh(void){	int count = MAXCOUNT;	do {		if (!--count) {			show("wait_on_bh");			count = ~0;		}		/* nothing .. wait for the other bh's to go away */	} while (atomic_read(&global_bh_count) != 0);}static inline void wait_on_irq(int cpu){	int count = MAXCOUNT;	for (;;) {		/*		 * Wait until all interrupts are gone. Wait		 * for bottom half handlers unless we're		 * already executing in one..		 */		if (!atomic_read(&global_irq_count)) {			if (local_bh_count(cpu)||			    !atomic_read(&global_bh_count))				break;		}		/* Duh, we have to loop. Release the lock to avoid deadlocks */		atomic_set(&global_irq_lock, 0);		for (;;) {			if (!--count) {				show("wait_on_irq");				count = ~0;			}			__sti();			SYNC_OTHER_CORES(cpu);			__cli();			check_smp_invalidate(cpu);			if (atomic_read(&global_irq_count))				continue;			if (atomic_read(&global_irq_lock))				continue;			if (!local_bh_count(cpu)			    && atomic_read(&global_bh_count))				continue;			if (!atomic_compare_and_swap(0, 1, &global_irq_lock))				 break;		}	}}/* * This is called when we want to synchronize with * bottom half handlers. We need to wait until * no other CPU is executing any bottom half handler. * * Don't wait if we're already running in an interrupt * context or are inside a bh handler. */void synchronize_bh(void){	if (atomic_read(&global_bh_count) && !in_interrupt())		wait_on_bh();}/* * This is called when we want to synchronize with * interrupts. We may for example tell a device to * stop sending interrupts: but to make sure there * are no interrupts that are executing on another * CPU we need to call this function. */void synchronize_irq(void){	if (atomic_read(&global_irq_count)) {		/* Stupid approach */		cli();		sti();	}}static inline void get_irqlock(int cpu){	if (atomic_compare_and_swap(0, 1, &global_irq_lock) != 0) {		/* do we already hold the lock? */		if ( cpu == atomic_read(&global_irq_holder))			return;		/* Uhhuh.. Somebody else got it. Wait.. */		do {			check_smp_invalidate(cpu);		} while (atomic_compare_and_swap(0, 1, &global_irq_lock) != 0);	}	/*	 * We also to make sure that nobody else is running	 * in an interrupt context.	 */	wait_on_irq(cpu);	/*	 * Ok, finally..	 */	atomic_set(&global_irq_holder,cpu);}#define EFLAGS_I_SHIFT 25/* * A global "cli()" while in an interrupt context * turns into just a local cli(). Interrupts * should use spinlocks for the (very unlikely) * case that they ever want to protect against * each other. * * If we already have local interrupts disabled, * this will not turn a local disable into a * global one (problems with spinlocks: this makes * save_flags+cli+sti usable inside a spinlock). */void __global_cli(void){	unsigned long flags;	__save_flags(flags);	if (flags & (1 << EFLAGS_I_SHIFT)) {		int cpu = smp_processor_id();		__cli();		if (!in_irq())			get_irqlock(cpu);	}}void __global_sti(void){	if (!in_irq())		release_irqlock(smp_processor_id());	__sti();}/* * SMP flags value to restore to: * 0 - global cli * 1 - global sti * 2 - local cli * 3 - local sti */unsigned long __global_save_flags(void){	int retval;	int local_enabled;	unsigned long flags;	__save_flags(flags);	local_enabled = (flags >> EFLAGS_I_SHIFT) & 1;	/* default to local */	retval = 2 + local_enabled;	/* check for global flags if we're not in an interrupt */	if (!in_irq())	{		if (local_enabled)			retval = 1;		if (atomic_read(&global_irq_holder)== smp_processor_id())			retval = 0;	}	return retval;}void __global_restore_flags(unsigned long flags){	switch (flags) {	case 0:		__global_cli();		break;	case 1:		__global_sti();		break;	case 2:		__cli();		break;	case 3:		__sti();		break;	default:		printk("global_restore_flags: %08lx (%08lx)\n",		       flags, (&flags)[-1]);	}}#endifvoid __init init_IRQ(void){        s390_init_IRQ();}void free_irq(unsigned int irq, void *dev_id){   s390_free_irq( irq, dev_id);}int request_irq( unsigned int   irq,                 void           (*handler)(int, void *, struct pt_regs *),                 unsigned long  irqflags,                 const char    *devname,                 void          *dev_id){   return( s390_request_irq( irq, handler, irqflags, devname, dev_id ) );}void init_irq_proc(void){        /* For now, nothing... */}#ifdef CONFIG_SMPEXPORT_SYMBOL(__global_cli);EXPORT_SYMBOL(__global_sti);EXPORT_SYMBOL(__global_save_flags);EXPORT_SYMBOL(__global_restore_flags);EXPORT_SYMBOL(global_irq_holder);EXPORT_SYMBOL(global_irq_lock);EXPORT_SYMBOL(global_irq_count);EXPORT_SYMBOL(global_bh_count);#endifEXPORT_SYMBOL(global_bh_lock);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲日本护士毛茸茸| 精品国产免费一区二区三区香蕉| 久久99精品久久久久久动态图| 亚洲三级久久久| 亚洲人成人一区二区在线观看 | 国产呦萝稀缺另类资源| 日韩国产一区二| 日韩影院在线观看| 免费人成网站在线观看欧美高清| 午夜日韩在线电影| 日本va欧美va欧美va精品| 婷婷成人激情在线网| 日本美女一区二区三区| 久久国产婷婷国产香蕉| 狠狠色丁香婷婷综合| 国产黄色精品视频| av高清不卡在线| 91久久久免费一区二区| 欧美视频一区二区三区四区 | 成人做爰69片免费看网站| 国产成人在线免费观看| 丁香婷婷深情五月亚洲| 91蝌蚪porny成人天涯| 色欲综合视频天天天| 欧美午夜片在线看| 日韩欧美专区在线| 国产精品视频在线看| 一区二区三区小说| 麻豆freexxxx性91精品| 高清不卡在线观看| 欧美在线啊v一区| 精品美女在线播放| 亚洲综合视频在线观看| 久久精品国产精品亚洲综合| 99久久精品情趣| 337p亚洲精品色噜噜噜| 国产亚洲一本大道中文在线| 一区av在线播放| 国产福利精品一区| 欧美日韩国产在线播放网站| 国产日韩一级二级三级| 午夜日韩在线观看| 99re在线视频这里只有精品| 日韩亚洲欧美高清| 亚洲柠檬福利资源导航| 国产真实乱对白精彩久久| 一本高清dvd不卡在线观看| 中文字幕av不卡| 亚洲国产精品人人做人人爽| 成人综合婷婷国产精品久久| 欧美日韩高清一区| 亚洲欧洲日韩综合一区二区| 久久国内精品视频| 欧美美女bb生活片| 亚洲人成在线播放网站岛国| 久久国产尿小便嘘嘘| 日本福利一区二区| 国产精品无人区| 久久99精品久久久| 欧美二区三区91| 亚洲午夜一区二区| 一本高清dvd不卡在线观看| 欧美激情在线一区二区| 激情另类小说区图片区视频区| 色婷婷综合中文久久一本| 久久久久久久综合| 韩国三级在线一区| 欧美二区三区的天堂| 亚洲图片一区二区| 色天使久久综合网天天| 亚洲欧美自拍偷拍色图| 福利视频网站一区二区三区| 久久视频一区二区| 精品一区二区国语对白| 日韩一级片网站| 日韩电影一区二区三区| 日韩欧美激情四射| 免费欧美日韩国产三级电影| 欧美精品第1页| 日韩专区中文字幕一区二区| 欧美日韩久久一区二区| 亚洲777理论| 91精品国产综合久久精品性色| 亚洲第一激情av| 欧美精品18+| 免费黄网站欧美| 26uuu国产一区二区三区| 黄色日韩三级电影| 久久精品水蜜桃av综合天堂| 国产成人鲁色资源国产91色综| 国产欧美日韩一区二区三区在线观看| 国产成人午夜精品5599| 国产精品狼人久久影院观看方式| 8v天堂国产在线一区二区| 亚洲在线观看免费视频| 欧美日韩国产小视频| 蜜桃久久久久久久| 2024国产精品| 色婷婷久久久久swag精品| 亚洲一区在线电影| 欧美电影免费观看高清完整版 | 欧美偷拍一区二区| 日韩av网站在线观看| 久久无码av三级| 一本到不卡免费一区二区| 日韩高清一区在线| 欧美国产日韩亚洲一区| 欧美三级视频在线观看| 国产麻豆9l精品三级站| 一区二区三区毛片| 欧美不卡一区二区三区四区| aaa欧美色吧激情视频| 亚洲大片精品永久免费| 久久一夜天堂av一区二区三区| 91视频免费播放| 激情图区综合网| 亚洲一区二区三区四区在线| 久久综合九色综合欧美亚洲| 在线精品亚洲一区二区不卡| 国产伦精品一区二区三区免费 | 日韩激情在线观看| 国产精品久久久久婷婷二区次| 欧美日本一区二区| av成人免费在线| 精品亚洲成a人| 午夜精品视频一区| 亚洲色图视频网站| 欧美国产1区2区| 日韩一卡二卡三卡四卡| 欧洲av一区二区嗯嗯嗯啊| 欧美日韩国产电影| k8久久久一区二区三区| 精品亚洲国产成人av制服丝袜| 亚洲成精国产精品女| 国产精品日韩精品欧美在线| 欧美大片拔萝卜| 欧美日本乱大交xxxxx| 色综合色狠狠综合色| 国产v日产∨综合v精品视频| 国产主播一区二区三区| 六月丁香婷婷色狠狠久久| 三级亚洲高清视频| 亚洲成av人片在线观看无码| 亚洲综合视频在线| 亚洲三级在线免费观看| 成人欧美一区二区三区1314| 亚洲国产精品成人综合| 国产婷婷精品av在线| 精品国产乱码久久久久久闺蜜| 欧美精品在线观看一区二区| 精品视频免费在线| 欧美午夜精品一区| 欧美三级电影在线看| 在线观看日韩高清av| 日本高清不卡aⅴ免费网站| 色又黄又爽网站www久久| 91麻豆国产自产在线观看| 成人午夜私人影院| 91在线看国产| 欧美亚洲日本国产| 欧美顶级少妇做爰| 欧美成人午夜电影| 国产欧美日韩三级| 国产精品国产a| 亚洲黄色在线视频| 亚洲午夜日本在线观看| 日韩和的一区二区| 国产综合色产在线精品| 丁香激情综合国产| 99视频热这里只有精品免费| 一本色道久久综合亚洲91| 欧美午夜电影一区| 日韩一区二区三区精品视频 | 久久精品免费看| 国产一区二区三区在线观看精品| 91天堂素人约啪| 欧美日韩大陆在线| 亚洲精品在线电影| 中文字幕亚洲电影| 亚洲成人黄色小说| 国产综合一区二区| 91影院在线免费观看| 欧美久久久久久久久| 久久综合九色欧美综合狠狠| 国产精品久久久99| 天天综合网 天天综合色| 精品一区精品二区高清| 99久久婷婷国产综合精品| 欧美日韩国产大片| 日本一区二区三区久久久久久久久不| 综合久久久久综合| 麻豆精品在线看| 91欧美一区二区| 日韩一区二区三区视频在线 | 在线观看成人免费视频| 69堂精品视频| 亚洲欧洲中文日韩久久av乱码| 日韩国产成人精品| 99re视频精品| 精品福利av导航|