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
3656b384
Commit
3656b384
authored
Nov 04, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.ninka.net:/disk1/davem/BK/sparc-2.5
into kernel.bkbits.net:/home/davem/sparc-2.5
parents
dd6c83a6
4154cebf
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
125 additions
and
131 deletions
+125
-131
arch/i386/mm/ioremap.c
arch/i386/mm/ioremap.c
+16
-5
arch/ia64/mm/tlb.c
arch/ia64/mm/tlb.c
+1
-1
arch/ia64/sn/io/machvec/pci_dma.c
arch/ia64/sn/io/machvec/pci_dma.c
+1
-2
drivers/block/ll_rw_blk.c
drivers/block/ll_rw_blk.c
+5
-0
drivers/ide/ide-tape.c
drivers/ide/ide-tape.c
+87
-119
drivers/net/Space.c
drivers/net/Space.c
+5
-1
include/linux/blkdev.h
include/linux/blkdev.h
+10
-0
include/linux/netdevice.h
include/linux/netdevice.h
+0
-1
net/core/dev.c
net/core/dev.c
+0
-2
No files found.
arch/i386/mm/ioremap.c
View file @
3656b384
...
@@ -190,16 +190,27 @@ void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flag
...
@@ -190,16 +190,27 @@ void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flag
void
*
ioremap_nocache
(
unsigned
long
phys_addr
,
unsigned
long
size
)
void
*
ioremap_nocache
(
unsigned
long
phys_addr
,
unsigned
long
size
)
{
{
unsigned
long
last_addr
;
void
*
p
=
__ioremap
(
phys_addr
,
size
,
_PAGE_PCD
);
void
*
p
=
__ioremap
(
phys_addr
,
size
,
_PAGE_PCD
);
if
(
!
p
)
if
(
!
p
)
return
p
;
return
p
;
if
(
phys_addr
+
size
<
virt_to_phys
(
high_memory
))
{
/* Guaranteed to be > phys_addr, as per __ioremap() */
last_addr
=
phys_addr
+
size
-
1
;
if
(
last_addr
<
virt_to_phys
(
high_memory
))
{
struct
page
*
ppage
=
virt_to_page
(
__va
(
phys_addr
));
struct
page
*
ppage
=
virt_to_page
(
__va
(
phys_addr
));
unsigned
long
npages
=
(
size
+
PAGE_SIZE
-
1
)
>>
PAGE_SHIFT
;
unsigned
long
npages
;
phys_addr
&=
PAGE_MASK
;
/* This might overflow and become zero.. */
last_addr
=
PAGE_ALIGN
(
last_addr
);
BUG_ON
(
phys_addr
+
size
>
(
unsigned
long
)
high_memory
);
/* .. but that's ok, because modulo-2**n arithmetic will make
BUG_ON
(
phys_addr
+
size
<
phys_addr
);
* the page-aligned "last - first" come out right.
*/
npages
=
(
last_addr
-
phys_addr
)
>>
PAGE_SHIFT
;
if
(
change_page_attr
(
ppage
,
npages
,
PAGE_KERNEL_NOCACHE
)
<
0
)
{
if
(
change_page_attr
(
ppage
,
npages
,
PAGE_KERNEL_NOCACHE
)
<
0
)
{
iounmap
(
p
);
iounmap
(
p
);
...
...
arch/ia64/mm/tlb.c
View file @
3656b384
...
@@ -77,7 +77,7 @@ wrap_mmu_context (struct mm_struct *mm)
...
@@ -77,7 +77,7 @@ wrap_mmu_context (struct mm_struct *mm)
{
{
int
cpu
=
get_cpu
();
/* prevent preemption/migration */
int
cpu
=
get_cpu
();
/* prevent preemption/migration */
for
(
i
=
0
;
i
<
NR_CPUS
;
++
i
)
for
(
i
=
0
;
i
<
NR_CPUS
;
++
i
)
if
(
i
!=
cpu
)
if
(
cpu_online
(
i
)
&&
(
i
!=
cpu
)
)
per_cpu
(
ia64_need_tlb_flush
,
i
)
=
1
;
per_cpu
(
ia64_need_tlb_flush
,
i
)
=
1
;
put_cpu
();
put_cpu
();
}
}
...
...
arch/ia64/sn/io/machvec/pci_dma.c
View file @
3656b384
...
@@ -279,8 +279,7 @@ sn_pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int dire
...
@@ -279,8 +279,7 @@ sn_pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, int nents, int dire
* scatterlist.
* scatterlist.
*/
*/
for
(
i
=
0
;
i
<
nents
;
i
++
,
sg
++
)
{
for
(
i
=
0
;
i
<
nents
;
i
++
,
sg
++
)
{
phys_addr
=
__pa
(
sg
->
dma_address
?
sg
->
dma_address
:
phys_addr
=
__pa
((
unsigned
long
)
page_address
(
sg
->
page
)
+
sg
->
offset
);
(
unsigned
long
)
page_address
(
sg
->
page
)
+
sg
->
offset
);
/*
/*
* Handle the most common case: 64 bit cards. This
* Handle the most common case: 64 bit cards. This
...
...
drivers/block/ll_rw_blk.c
View file @
3656b384
...
@@ -780,6 +780,11 @@ static char *rq_flags[] = {
...
@@ -780,6 +780,11 @@ static char *rq_flags[] = {
"REQ_PM_SUSPEND"
,
"REQ_PM_SUSPEND"
,
"REQ_PM_RESUME"
,
"REQ_PM_RESUME"
,
"REQ_PM_SHUTDOWN"
,
"REQ_PM_SHUTDOWN"
,
"REQ_IDETAPE_PC1"
,
"REQ_IDETAPE_PC2"
,
"REQ_IDETAPE_READ"
,
"REQ_IDETAPE_WRITE"
,
"REQ_IDETAPE_READ_BUFFER"
,
};
};
void
blk_dump_rq_flags
(
struct
request
*
rq
,
char
*
msg
)
void
blk_dump_rq_flags
(
struct
request
*
rq
,
char
*
msg
)
...
...
drivers/ide/ide-tape.c
View file @
3656b384
This diff is collapsed.
Click to expand it.
drivers/net/Space.c
View file @
3656b384
...
@@ -422,7 +422,7 @@ static __init int trif_probe(int unit)
...
@@ -422,7 +422,7 @@ static __init int trif_probe(int unit)
extern
int
loopback_init
(
void
);
extern
int
loopback_init
(
void
);
/* Statically configured drivers -- order matters here. */
/* Statically configured drivers -- order matters here. */
void
__init
probe_old_netdevs
(
void
)
static
int
__init
net_olddevs_init
(
void
)
{
{
int
num
;
int
num
;
...
@@ -450,8 +450,12 @@ void __init probe_old_netdevs(void)
...
@@ -450,8 +450,12 @@ void __init probe_old_netdevs(void)
#ifdef CONFIG_LTPC
#ifdef CONFIG_LTPC
ltpc_probe
();
ltpc_probe
();
#endif
#endif
return
0
;
}
}
device_initcall
(
net_olddevs_init
);
/*
/*
* The @dev_base list is protected by @dev_base_lock and the rtln
* The @dev_base list is protected by @dev_base_lock and the rtln
* semaphore.
* semaphore.
...
...
include/linux/blkdev.h
View file @
3656b384
...
@@ -193,6 +193,11 @@ enum rq_flag_bits {
...
@@ -193,6 +193,11 @@ enum rq_flag_bits {
__REQ_PM_SUSPEND
,
/* suspend request */
__REQ_PM_SUSPEND
,
/* suspend request */
__REQ_PM_RESUME
,
/* resume request */
__REQ_PM_RESUME
,
/* resume request */
__REQ_PM_SHUTDOWN
,
/* shutdown request */
__REQ_PM_SHUTDOWN
,
/* shutdown request */
__REQ_IDETAPE_PC1
,
/* packet command (first stage) */
__REQ_IDETAPE_PC2
,
/* packet command (second stage) */
__REQ_IDETAPE_READ
,
__REQ_IDETAPE_WRITE
,
__REQ_IDETAPE_READ_BUFFER
,
__REQ_NR_BITS
,
/* stops here */
__REQ_NR_BITS
,
/* stops here */
};
};
...
@@ -218,6 +223,11 @@ enum rq_flag_bits {
...
@@ -218,6 +223,11 @@ enum rq_flag_bits {
#define REQ_PM_SUSPEND (1 << __REQ_PM_SUSPEND)
#define REQ_PM_SUSPEND (1 << __REQ_PM_SUSPEND)
#define REQ_PM_RESUME (1 << __REQ_PM_RESUME)
#define REQ_PM_RESUME (1 << __REQ_PM_RESUME)
#define REQ_PM_SHUTDOWN (1 << __REQ_PM_SHUTDOWN)
#define REQ_PM_SHUTDOWN (1 << __REQ_PM_SHUTDOWN)
#define REQ_IDETAPE_PC1 (1 << __REQ_IDETAPE_PC1)
#define REQ_IDETAPE_PC2 (1 << __REQ_IDETAPE_PC2)
#define REQ_IDETAPE_READ (1 << __REQ_IDETAPE_READ)
#define REQ_IDETAPE_WRITE (1 << __REQ_IDETAPE_WRITE)
#define REQ_IDETAPE_READ_BUFFER (1 << __REQ_IDETAPE_READ_BUFFER)
/*
/*
* State information carried for REQ_PM_SUSPEND and REQ_PM_RESUME
* State information carried for REQ_PM_SUSPEND and REQ_PM_RESUME
...
...
include/linux/netdevice.h
View file @
3656b384
...
@@ -494,7 +494,6 @@ extern struct net_device loopback_dev; /* The loopback */
...
@@ -494,7 +494,6 @@ extern struct net_device loopback_dev; /* The loopback */
extern
struct
net_device
*
dev_base
;
/* All devices */
extern
struct
net_device
*
dev_base
;
/* All devices */
extern
rwlock_t
dev_base_lock
;
/* Device list lock */
extern
rwlock_t
dev_base_lock
;
/* Device list lock */
extern
void
probe_old_netdevs
(
void
);
extern
int
netdev_boot_setup_add
(
char
*
name
,
struct
ifmap
*
map
);
extern
int
netdev_boot_setup_add
(
char
*
name
,
struct
ifmap
*
map
);
extern
int
netdev_boot_setup_check
(
struct
net_device
*
dev
);
extern
int
netdev_boot_setup_check
(
struct
net_device
*
dev
);
extern
struct
net_device
*
dev_getbyhwaddr
(
unsigned
short
type
,
char
*
hwaddr
);
extern
struct
net_device
*
dev_getbyhwaddr
(
unsigned
short
type
,
char
*
hwaddr
);
...
...
net/core/dev.c
View file @
3656b384
...
@@ -3033,8 +3033,6 @@ static int __init net_dev_init(void)
...
@@ -3033,8 +3033,6 @@ static int __init net_dev_init(void)
dev_boot_phase
=
0
;
dev_boot_phase
=
0
;
probe_old_netdevs
();
open_softirq
(
NET_TX_SOFTIRQ
,
net_tx_action
,
NULL
);
open_softirq
(
NET_TX_SOFTIRQ
,
net_tx_action
,
NULL
);
open_softirq
(
NET_RX_SOFTIRQ
,
net_rx_action
,
NULL
);
open_softirq
(
NET_RX_SOFTIRQ
,
net_rx_action
,
NULL
);
...
...
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