提交 fc2021fb 编写于 作者: M Michael Opdenacker 提交者: Jens Axboe

block: hd: remove deprecated IRQF_DISABLED

This patch removes the use of the IRQF_DISABLED flag
from drivers/block/hd.c

It's a NOOP since 2.6.35 and it will be removed one day.

This also removes a related comment which is obsolete too.
Signed-off-by: NMichael Opdenacker <michael.opdenacker@free-electrons.com>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 e9f05b4c
...@@ -694,16 +694,6 @@ static const struct block_device_operations hd_fops = { ...@@ -694,16 +694,6 @@ static const struct block_device_operations hd_fops = {
.getgeo = hd_getgeo, .getgeo = hd_getgeo,
}; };
/*
* This is the hard disk IRQ description. The IRQF_DISABLED in sa_flags
* means we run the IRQ-handler with interrupts disabled: this is bad for
* interrupt latency, but anything else has led to problems on some
* machines.
*
* We enable interrupts in some of the routines after making sure it's
* safe.
*/
static int __init hd_init(void) static int __init hd_init(void)
{ {
int drive; int drive;
...@@ -761,7 +751,7 @@ static int __init hd_init(void) ...@@ -761,7 +751,7 @@ static int __init hd_init(void)
p->cyl, p->head, p->sect); p->cyl, p->head, p->sect);
} }
if (request_irq(HD_IRQ, hd_interrupt, IRQF_DISABLED, "hd", NULL)) { if (request_irq(HD_IRQ, hd_interrupt, 0, "hd", NULL)) {
printk("hd: unable to get IRQ%d for the hard disk driver\n", printk("hd: unable to get IRQ%d for the hard disk driver\n",
HD_IRQ); HD_IRQ);
goto out1; goto out1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册