Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
d3bb0343
Commit
d3bb0343
authored
Jan 25, 2008
by
Bartlomiej Zolnierkiewicz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ide-tape: remove dead USE_IOTRACE code
Signed-off-by:
Bartlomiej Zolnierkiewicz
<
bzolnier@gmail.com
>
parent
4ee06b7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
+0
-22
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+0
-22
No files found.
drivers/ide/ide-tape.c
View file @
d3bb0343
...
...
@@ -614,16 +614,6 @@ typedef struct os_dat_s {
/*************************** End of tunable parameters ***********************/
/*
* Debugging/Performance analysis
*
* I/O trace support
*/
#define USE_IOTRACE 0
#if USE_IOTRACE
#define IO_IDETAPE_FIFO 500
#endif
/*
* Read/Write error simulation
*/
...
...
@@ -2502,9 +2492,6 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive,
}
if
(
rq
->
cmd
[
0
]
&
REQ_IDETAPE_READ
)
{
tape
->
buffer_head
++
;
#if USE_IOTRACE
IO_trace
(
IO_IDETAPE_FIFO
,
tape
->
pipeline_head
,
tape
->
buffer_head
,
tape
->
tape_head
,
tape
->
minor
);
#endif
tape
->
postpone_cnt
=
0
;
pc
=
idetape_next_pc_storage
(
drive
);
idetape_create_read_cmd
(
tape
,
pc
,
rq
->
current_nr_sectors
,
(
struct
idetape_bh
*
)
rq
->
special
);
...
...
@@ -2512,9 +2499,6 @@ static ide_startstop_t idetape_do_request(ide_drive_t *drive,
}
if
(
rq
->
cmd
[
0
]
&
REQ_IDETAPE_WRITE
)
{
tape
->
buffer_head
++
;
#if USE_IOTRACE
IO_trace
(
IO_IDETAPE_FIFO
,
tape
->
pipeline_head
,
tape
->
buffer_head
,
tape
->
tape_head
,
tape
->
minor
);
#endif
tape
->
postpone_cnt
=
0
;
pc
=
idetape_next_pc_storage
(
drive
);
idetape_create_write_cmd
(
tape
,
pc
,
rq
->
current_nr_sectors
,
(
struct
idetape_bh
*
)
rq
->
special
);
...
...
@@ -3241,9 +3225,6 @@ static int idetape_add_chrdev_write_request (ide_drive_t *drive, int blocks)
idetape_switch_buffers
(
tape
,
new_stage
);
idetape_add_stage_tail
(
drive
,
new_stage
);
tape
->
pipeline_head
++
;
#if USE_IOTRACE
IO_trace
(
IO_IDETAPE_FIFO
,
tape
->
pipeline_head
,
tape
->
buffer_head
,
tape
->
tape_head
,
tape
->
minor
);
#endif
calculate_speeds
(
drive
);
/*
...
...
@@ -3493,9 +3474,6 @@ static int idetape_add_chrdev_read_request (ide_drive_t *drive,int blocks)
idetape_remove_stage_head
(
drive
);
spin_unlock_irqrestore
(
&
tape
->
spinlock
,
flags
);
tape
->
pipeline_head
++
;
#if USE_IOTRACE
IO_trace
(
IO_IDETAPE_FIFO
,
tape
->
pipeline_head
,
tape
->
buffer_head
,
tape
->
tape_head
,
tape
->
minor
);
#endif
calculate_speeds
(
drive
);
}
#if IDETAPE_DEBUG_BUGS
...
...
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