Chinaunix首页 | 论坛 | 博客
  • 博客访问: 609233
  • 博文数量: 197
  • 博客积分: 7001
  • 博客等级: 大校
  • 技术积分: 2155
  • 用 户 组: 普通用户
  • 注册时间: 2005-02-24 00:29
文章分类

全部博文(197)

文章存档

2022年(1)

2019年(2)

2015年(1)

2012年(100)

2011年(69)

2010年(14)

2007年(3)

2005年(7)

分类: LINUX

2012-03-30 15:06:44

大约在2.6.18左右

Currently, linux/irqflags.h defines local_irq_enable() and friends
through raw_* counterparts.

Sometimes it defines raw_* counterparts through local_irq_enable() and
friends.

I'm going to end this subtle joke and make on all archs:

local_irq_enable() via raw_local_irq_enable()
local_irq_disable() via raw_local_irq_disable()
local_irq_save() via raw_local_irq_save()
local_irq_restore() via raw_local_irq_restore() + stuff
local_save_flags() via raw_local_save_flags()
irqs_disabled() via raw_irqs_disabled_flags() + stuff

linux/irqflags.h will include asm/irqflags.h unconditionally.
Arches that don't have asm/irqflags.h will get it through extraction
from asm/system.h or whatever.

Users will just include

Irq tracing will remain the same (it's nop depending on config option,
after all).

阅读(1128) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~