Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
54cc1428
Commit
54cc1428
authored
Jan 06, 2009
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide: remove local_irq_set() macro
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
898ec223
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/ide/ide-iops.c
drivers/ide/ide-iops.c
+2
-1
drivers/ide/ide-probe.c
drivers/ide/ide-probe.c
+2
-1
include/linux/ide.h
include/linux/ide.h
+0
-2
No files found.
drivers/ide/ide-iops.c
View file @
54cc1428
...
@@ -503,7 +503,8 @@ static int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, unsigned long ti
...
@@ -503,7 +503,8 @@ static int __ide_wait_stat(ide_drive_t *drive, u8 good, u8 bad, unsigned long ti
stat
=
tp_ops
->
read_status
(
hwif
);
stat
=
tp_ops
->
read_status
(
hwif
);
if
(
stat
&
ATA_BUSY
)
{
if
(
stat
&
ATA_BUSY
)
{
local_irq_set
(
flags
);
local_irq_save
(
flags
);
local_irq_enable_in_hardirq
();
timeout
+=
jiffies
;
timeout
+=
jiffies
;
while
((
stat
=
tp_ops
->
read_status
(
hwif
))
&
ATA_BUSY
)
{
while
((
stat
=
tp_ops
->
read_status
(
hwif
))
&
ATA_BUSY
)
{
if
(
time_after
(
jiffies
,
timeout
))
{
if
(
time_after
(
jiffies
,
timeout
))
{
...
...
drivers/ide/ide-probe.c
View file @
54cc1428
...
@@ -796,7 +796,8 @@ static int ide_probe_port(ide_hwif_t *hwif)
...
@@ -796,7 +796,8 @@ static int ide_probe_port(ide_hwif_t *hwif)
if
(
irqd
)
if
(
irqd
)
disable_irq
(
hwif
->
irq
);
disable_irq
(
hwif
->
irq
);
local_irq_set
(
flags
);
local_irq_save
(
flags
);
local_irq_enable_in_hardirq
();
if
(
ide_port_wait_ready
(
hwif
)
==
-
EBUSY
)
if
(
ide_port_wait_ready
(
hwif
)
==
-
EBUSY
)
printk
(
KERN_DEBUG
"%s: Wait for ready failed before probe !
\n
"
,
hwif
->
name
);
printk
(
KERN_DEBUG
"%s: Wait for ready failed before probe !
\n
"
,
hwif
->
name
);
...
...
include/linux/ide.h
View file @
54cc1428
...
@@ -1586,8 +1586,6 @@ static inline void ide_set_max_pio(ide_drive_t *drive)
...
@@ -1586,8 +1586,6 @@ static inline void ide_set_max_pio(ide_drive_t *drive)
ide_set_pio
(
drive
,
255
);
ide_set_pio
(
drive
,
255
);
}
}
#define local_irq_set(flags) do { local_save_flags((flags)); local_irq_enable_in_hardirq(); } while (0)
char
*
ide_media_string
(
ide_drive_t
*
);
char
*
ide_media_string
(
ide_drive_t
*
);
extern
struct
device_attribute
ide_dev_attrs
[];
extern
struct
device_attribute
ide_dev_attrs
[];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment