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
494eebab
Commit
494eebab
authored
Sep 24, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://kernel.bkbits.net/davem/nf-2.6
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
9290a55b
d7bddfe5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
arch/sparc64/defconfig
arch/sparc64/defconfig
+2
-2
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+17
-6
No files found.
arch/sparc64/defconfig
View file @
494eebab
#
#
# Automatically generated make config: don't edit
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.9-rc2
# Linux kernel version: 2.6.9-rc2
#
Thu Sep 16 14:44:26
2004
#
Fri Sep 24 12:34:43
2004
#
#
CONFIG_64BIT=y
CONFIG_64BIT=y
CONFIG_MMU=y
CONFIG_MMU=y
...
@@ -259,7 +259,6 @@ CONFIG_BLK_DEV_IDEDMA_PCI=y
...
@@ -259,7 +259,6 @@ CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_IDEDMA_ONLYDISK=y
CONFIG_IDEDMA_ONLYDISK=y
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_AEC62XX is not set
CONFIG_BLK_DEV_ALI15X3=y
CONFIG_BLK_DEV_ALI15X3=y
# CONFIG_WDC_ALI15X3 is not set
# CONFIG_WDC_ALI15X3 is not set
...
@@ -611,6 +610,7 @@ CONFIG_IP6_NF_MATCH_IPV6HEADER=m
...
@@ -611,6 +610,7 @@ CONFIG_IP6_NF_MATCH_IPV6HEADER=m
CONFIG_IP6_NF_MATCH_AHESP=m
CONFIG_IP6_NF_MATCH_AHESP=m
CONFIG_IP6_NF_MATCH_LENGTH=m
CONFIG_IP6_NF_MATCH_LENGTH=m
CONFIG_IP6_NF_MATCH_EUI64=m
CONFIG_IP6_NF_MATCH_EUI64=m
CONFIG_IP6_NF_MATCH_PHYSDEV=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_TARGET_LOG=m
CONFIG_IP6_NF_TARGET_LOG=m
CONFIG_IP6_NF_MANGLE=m
CONFIG_IP6_NF_MANGLE=m
...
...
arch/sparc64/kernel/time.c
View file @
494eebab
...
@@ -910,10 +910,10 @@ void __init clock_probe(void)
...
@@ -910,10 +910,10 @@ void __init clock_probe(void)
}
}
/* This is gets the master TICK_INT timer going. */
/* This is gets the master TICK_INT timer going. */
static
unsigned
long
sparc64_init_timers
(
irqreturn_t
(
*
cfunc
)(
int
,
void
*
,
struct
pt_regs
*
)
)
static
unsigned
long
sparc64_init_timers
(
void
)
{
{
unsigned
long
pstate
,
clock
;
unsigned
long
clock
;
int
node
,
err
;
int
node
;
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
extern
void
smp_tick_init
(
void
);
extern
void
smp_tick_init
(
void
);
#endif
#endif
...
@@ -946,6 +946,14 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
...
@@ -946,6 +946,14 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
smp_tick_init
();
smp_tick_init
();
#endif
#endif
return
clock
;
}
static
void
sparc64_start_timers
(
irqreturn_t
(
*
cfunc
)(
int
,
void
*
,
struct
pt_regs
*
))
{
unsigned
long
pstate
;
int
err
;
/* Register IRQ handler. */
/* Register IRQ handler. */
err
=
request_irq
(
build_irq
(
0
,
0
,
0UL
,
0UL
),
cfunc
,
SA_STATIC_ALLOC
,
err
=
request_irq
(
build_irq
(
0
,
0
,
0UL
,
0UL
),
cfunc
,
SA_STATIC_ALLOC
,
"timer"
,
NULL
);
"timer"
,
NULL
);
...
@@ -971,8 +979,6 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
...
@@ -971,8 +979,6 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
:
"r"
(
pstate
));
:
"r"
(
pstate
));
local_irq_enable
();
local_irq_enable
();
return
clock
;
}
}
struct
freq_table
{
struct
freq_table
{
...
@@ -1036,11 +1042,16 @@ static struct time_interpolator sparc64_cpu_interpolator = {
...
@@ -1036,11 +1042,16 @@ static struct time_interpolator sparc64_cpu_interpolator = {
#define SPARC64_NSEC_PER_CYC_SHIFT 30UL
#define SPARC64_NSEC_PER_CYC_SHIFT 30UL
void
__init
time_init
(
void
)
void
__init
time_init
(
void
)
{
{
unsigned
long
clock
=
sparc64_init_timers
(
timer_interrupt
);
unsigned
long
clock
=
sparc64_init_timers
();
sparc64_cpu_interpolator
.
frequency
=
clock
;
sparc64_cpu_interpolator
.
frequency
=
clock
;
register_time_interpolator
(
&
sparc64_cpu_interpolator
);
register_time_interpolator
(
&
sparc64_cpu_interpolator
);
/* Now that the interpolator is registered, it is
* safe to start the timer ticking.
*/
sparc64_start_timers
(
timer_interrupt
);
timer_ticks_per_nsec_quotient
=
timer_ticks_per_nsec_quotient
=
(((
NSEC_PER_SEC
<<
SPARC64_NSEC_PER_CYC_SHIFT
)
+
(((
NSEC_PER_SEC
<<
SPARC64_NSEC_PER_CYC_SHIFT
)
+
(
clock
/
2
))
/
clock
);
(
clock
/
2
))
/
clock
);
...
...
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