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
30eced59
Commit
30eced59
authored
May 25, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://are.twiddle.net/axp-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
d831e5a2
7c5488f0
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
25 deletions
+25
-25
arch/alpha/kernel/sys_eiger.c
arch/alpha/kernel/sys_eiger.c
+13
-20
arch/alpha/kernel/sys_ruffian.c
arch/alpha/kernel/sys_ruffian.c
+5
-2
arch/alpha/kernel/sys_takara.c
arch/alpha/kernel/sys_takara.c
+5
-1
arch/alpha/mm/init.c
arch/alpha/mm/init.c
+1
-1
arch/alpha/mm/numa.c
arch/alpha/mm/numa.c
+1
-1
No files found.
arch/alpha/kernel/sys_eiger.c
View file @
30eced59
...
@@ -194,13 +194,8 @@ eiger_swizzle(struct pci_dev *dev, u8 *pinp)
...
@@ -194,13 +194,8 @@ eiger_swizzle(struct pci_dev *dev, u8 *pinp)
case
0x0f
:
bridge_count
=
4
;
break
;
/* 4 */
case
0x0f
:
bridge_count
=
4
;
break
;
/* 4 */
};
};
/* Check first for the built-in bridges on hose 0. */
if
(
hose
->
index
==
0
&&
PCI_SLOT
(
dev
->
bus
->
self
->
devfn
)
>
20
-
bridge_count
)
{
slot
=
PCI_SLOT
(
dev
->
devfn
);
slot
=
PCI_SLOT
(
dev
->
devfn
);
}
else
{
while
(
dev
->
bus
->
self
)
{
/* Must be a card-based bridge. */
do
{
/* Check for built-in bridges on hose 0. */
/* Check for built-in bridges on hose 0. */
if
(
hose
->
index
==
0
if
(
hose
->
index
==
0
&&
(
PCI_SLOT
(
dev
->
bus
->
self
->
devfn
)
&&
(
PCI_SLOT
(
dev
->
bus
->
self
->
devfn
)
...
@@ -208,13 +203,11 @@ eiger_swizzle(struct pci_dev *dev, u8 *pinp)
...
@@ -208,13 +203,11 @@ eiger_swizzle(struct pci_dev *dev, u8 *pinp)
slot
=
PCI_SLOT
(
dev
->
devfn
);
slot
=
PCI_SLOT
(
dev
->
devfn
);
break
;
break
;
}
}
/* Must be a card-based bridge. */
pin
=
bridge_swizzle
(
pin
,
PCI_SLOT
(
dev
->
devfn
));
pin
=
bridge_swizzle
(
pin
,
PCI_SLOT
(
dev
->
devfn
));
/* Move up the chain of bridges. */
/* Move up the chain of bridges. */
dev
=
dev
->
bus
->
self
;
dev
=
dev
->
bus
->
self
;
/* Slot of the next bridge. */
slot
=
PCI_SLOT
(
dev
->
devfn
);
}
while
(
dev
->
bus
->
self
);
}
}
*
pinp
=
pin
;
*
pinp
=
pin
;
return
slot
;
return
slot
;
...
...
arch/alpha/kernel/sys_ruffian.c
View file @
30eced59
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include <asm/pgtable.h>
#include <asm/pgtable.h>
#include <asm/core_cia.h>
#include <asm/core_cia.h>
#include <asm/tlbflush.h>
#include <asm/tlbflush.h>
#include <asm/8253pit.h>
#include "proto.h"
#include "proto.h"
#include "irq_impl.h"
#include "irq_impl.h"
...
@@ -64,6 +65,8 @@ ruffian_init_irq(void)
...
@@ -64,6 +65,8 @@ ruffian_init_irq(void)
common_init_isa_dma
();
common_init_isa_dma
();
}
}
#define RUFFIAN_LATCH ((PIT_TICK_RATE + HZ / 2) / HZ)
static
void
__init
static
void
__init
ruffian_init_rtc
(
void
)
ruffian_init_rtc
(
void
)
{
{
...
@@ -72,8 +75,8 @@ ruffian_init_rtc(void)
...
@@ -72,8 +75,8 @@ ruffian_init_rtc(void)
/* Setup interval timer. */
/* Setup interval timer. */
outb
(
0x34
,
0x43
);
/* binary, mode 2, LSB/MSB, ch 0 */
outb
(
0x34
,
0x43
);
/* binary, mode 2, LSB/MSB, ch 0 */
outb
(
LATCH
&
0xff
,
0x40
);
/* LSB */
outb
(
RUFFIAN_
LATCH
&
0xff
,
0x40
);
/* LSB */
outb
(
LATCH
>>
8
,
0x40
);
/* MSB */
outb
(
RUFFIAN_
LATCH
>>
8
,
0x40
);
/* MSB */
outb
(
0xb6
,
0x43
);
/* pit counter 2: speaker */
outb
(
0xb6
,
0x43
);
/* pit counter 2: speaker */
outb
(
0x31
,
0x42
);
outb
(
0x31
,
0x42
);
...
...
arch/alpha/kernel/sys_takara.c
View file @
30eced59
...
@@ -231,8 +231,12 @@ takara_swizzle(struct pci_dev *dev, u8 *pinp)
...
@@ -231,8 +231,12 @@ takara_swizzle(struct pci_dev *dev, u8 *pinp)
int
slot
=
PCI_SLOT
(
dev
->
devfn
);
int
slot
=
PCI_SLOT
(
dev
->
devfn
);
int
pin
=
*
pinp
;
int
pin
=
*
pinp
;
unsigned
int
ctlreg
=
inl
(
0x500
);
unsigned
int
ctlreg
=
inl
(
0x500
);
unsigned
int
busslot
=
PCI_SLOT
(
dev
->
bus
->
self
->
devfn
);
unsigned
int
busslot
;
if
(
!
dev
->
bus
->
self
)
return
slot
;
busslot
=
PCI_SLOT
(
dev
->
bus
->
self
->
devfn
);
/* Check for built-in bridges. */
/* Check for built-in bridges. */
if
(
dev
->
bus
->
number
!=
0
if
(
dev
->
bus
->
number
!=
0
&&
busslot
>
16
&&
busslot
>
16
...
...
arch/alpha/mm/init.c
View file @
30eced59
...
@@ -117,7 +117,7 @@ show_mem(void)
...
@@ -117,7 +117,7 @@ show_mem(void)
else
if
(
!
page_count
(
mem_map
+
i
))
else
if
(
!
page_count
(
mem_map
+
i
))
free
++
;
free
++
;
else
else
shared
+=
atomic_read
(
&
mem_map
[
i
].
count
)
-
1
;
shared
+=
page_count
(
mem_map
+
i
)
-
1
;
}
}
printk
(
"%ld pages of RAM
\n
"
,
total
);
printk
(
"%ld pages of RAM
\n
"
,
total
);
printk
(
"%ld free pages
\n
"
,
free
);
printk
(
"%ld free pages
\n
"
,
free
);
...
...
arch/alpha/mm/numa.c
View file @
30eced59
...
@@ -384,7 +384,7 @@ show_mem(void)
...
@@ -384,7 +384,7 @@ show_mem(void)
else
if
(
!
page_count
(
lmem_map
+
i
))
else
if
(
!
page_count
(
lmem_map
+
i
))
free
++
;
free
++
;
else
else
shared
+=
atomic_read
(
&
lmem_map
[
i
].
count
)
-
1
;
shared
+=
page_count
(
lmem_map
+
i
)
-
1
;
}
}
}
}
printk
(
"%ld pages of RAM
\n
"
,
total
);
printk
(
"%ld pages of RAM
\n
"
,
total
);
...
...
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