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
nexedi
linux
Commits
1ae71dcb
Commit
1ae71dcb
authored
Dec 30, 2002
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://linux-dj.bkbits.net/warnings
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
ded3d8ea
ee0d7c25
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
13 deletions
+11
-13
drivers/scsi/atari_NCR5380.c
drivers/scsi/atari_NCR5380.c
+6
-11
include/asm-i386/hw_irq.h
include/asm-i386/hw_irq.h
+3
-2
include/linux/types.h
include/linux/types.h
+2
-0
No files found.
drivers/scsi/atari_NCR5380.c
View file @
1ae71dcb
...
@@ -309,13 +309,8 @@ static Scsi_Host_Template *the_template = NULL;
...
@@ -309,13 +309,8 @@ static Scsi_Host_Template *the_template = NULL;
#undef TAG_NONE
#undef TAG_NONE
#define TAG_NONE 0xff
#define TAG_NONE 0xff
/* For the m68k, the number of bits in 'allocated' must be a multiple of 32! */
#if (MAX_TAGS % 32) != 0
#error "MAX_TAGS must be a multiple of 32!"
#endif
typedef
struct
{
typedef
struct
{
long
allocated
[
MAX_TAGS
/
32
]
;
DECLARE_BITMAP
(
allocated
,
MAX_TAGS
)
;
int
nr_allocated
;
int
nr_allocated
;
int
queue_size
;
int
queue_size
;
}
TAG_ALLOC
;
}
TAG_ALLOC
;
...
@@ -334,7 +329,7 @@ static void __init init_tags( void )
...
@@ -334,7 +329,7 @@ static void __init init_tags( void )
for
(
target
=
0
;
target
<
8
;
++
target
)
{
for
(
target
=
0
;
target
<
8
;
++
target
)
{
for
(
lun
=
0
;
lun
<
8
;
++
lun
)
{
for
(
lun
=
0
;
lun
<
8
;
++
lun
)
{
ta
=
&
TagAlloc
[
target
][
lun
];
ta
=
&
TagAlloc
[
target
][
lun
];
memset
(
&
ta
->
allocated
,
0
,
MAX_TAGS
/
8
);
CLEAR_BITMAP
(
ta
->
allocated
,
MAX_TAGS
);
ta
->
nr_allocated
=
0
;
ta
->
nr_allocated
=
0
;
/* At the beginning, assume the maximum queue size we could
/* At the beginning, assume the maximum queue size we could
* support (MAX_TAGS). This value will be decreased if the target
* support (MAX_TAGS). This value will be decreased if the target
...
@@ -394,8 +389,8 @@ static void cmd_get_tag( Scsi_Cmnd *cmd, int should_be_tagged )
...
@@ -394,8 +389,8 @@ static void cmd_get_tag( Scsi_Cmnd *cmd, int should_be_tagged )
else
{
else
{
TAG_ALLOC
*
ta
=
&
TagAlloc
[
cmd
->
target
][
cmd
->
lun
];
TAG_ALLOC
*
ta
=
&
TagAlloc
[
cmd
->
target
][
cmd
->
lun
];
cmd
->
tag
=
find_first_zero_bit
(
&
ta
->
allocated
,
MAX_TAGS
);
cmd
->
tag
=
find_first_zero_bit
(
ta
->
allocated
,
MAX_TAGS
);
set_bit
(
cmd
->
tag
,
&
ta
->
allocated
);
set_bit
(
cmd
->
tag
,
ta
->
allocated
);
ta
->
nr_allocated
++
;
ta
->
nr_allocated
++
;
TAG_PRINTK
(
"scsi%d: using tag %d for target %d lun %d "
TAG_PRINTK
(
"scsi%d: using tag %d for target %d lun %d "
"(now %d tags in use)
\n
"
,
"(now %d tags in use)
\n
"
,
...
@@ -424,7 +419,7 @@ static void cmd_free_tag( Scsi_Cmnd *cmd )
...
@@ -424,7 +419,7 @@ static void cmd_free_tag( Scsi_Cmnd *cmd )
}
}
else
{
else
{
TAG_ALLOC
*
ta
=
&
TagAlloc
[
cmd
->
target
][
cmd
->
lun
];
TAG_ALLOC
*
ta
=
&
TagAlloc
[
cmd
->
target
][
cmd
->
lun
];
clear_bit
(
cmd
->
tag
,
&
ta
->
allocated
);
clear_bit
(
cmd
->
tag
,
ta
->
allocated
);
ta
->
nr_allocated
--
;
ta
->
nr_allocated
--
;
TAG_PRINTK
(
"scsi%d: freed tag %d for target %d lun %d
\n
"
,
TAG_PRINTK
(
"scsi%d: freed tag %d for target %d lun %d
\n
"
,
H_NO
(
cmd
),
cmd
->
tag
,
cmd
->
target
,
cmd
->
lun
);
H_NO
(
cmd
),
cmd
->
tag
,
cmd
->
target
,
cmd
->
lun
);
...
@@ -443,7 +438,7 @@ static void free_all_tags( void )
...
@@ -443,7 +438,7 @@ static void free_all_tags( void )
for
(
target
=
0
;
target
<
8
;
++
target
)
{
for
(
target
=
0
;
target
<
8
;
++
target
)
{
for
(
lun
=
0
;
lun
<
8
;
++
lun
)
{
for
(
lun
=
0
;
lun
<
8
;
++
lun
)
{
ta
=
&
TagAlloc
[
target
][
lun
];
ta
=
&
TagAlloc
[
target
][
lun
];
memset
(
&
ta
->
allocated
,
0
,
MAX_TAGS
/
8
);
CLEAR_BITMAP
(
ta
->
allocated
,
MAX_TAGS
);
ta
->
nr_allocated
=
0
;
ta
->
nr_allocated
=
0
;
}
}
}
}
...
...
include/asm-i386/hw_irq.h
View file @
1ae71dcb
...
@@ -131,8 +131,9 @@ static inline int unregister_profile_notifier(struct notifier_block * nb)
...
@@ -131,8 +131,9 @@ static inline int unregister_profile_notifier(struct notifier_block * nb)
#endif
/* CONFIG_PROFILING */
#endif
/* CONFIG_PROFILING */
#ifdef CONFIG_X86_IO_APIC
/*more of this file should probably be ifdefed SMP */
#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP)
static
inline
void
hw_resend_irq
(
struct
hw_interrupt_type
*
h
,
unsigned
int
i
)
{
static
inline
void
hw_resend_irq
(
struct
hw_interrupt_type
*
h
,
unsigned
int
i
)
{
if
(
IO_APIC_IRQ
(
i
))
if
(
IO_APIC_IRQ
(
i
))
send_IPI_self
(
IO_APIC_VECTOR
(
i
));
send_IPI_self
(
IO_APIC_VECTOR
(
i
));
}
}
...
...
include/linux/types.h
View file @
1ae71dcb
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
#define DECLARE_BITMAP(name,bits) \
#define DECLARE_BITMAP(name,bits) \
unsigned long name[((bits)+BITS_PER_LONG-1)/BITS_PER_LONG]
unsigned long name[((bits)+BITS_PER_LONG-1)/BITS_PER_LONG]
#define CLEAR_BITMAP(name,bits) \
memset(name, 0, ((bits)+BITS_PER_LONG-1)/8)
#endif
#endif
#include <linux/posix_types.h>
#include <linux/posix_types.h>
...
...
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