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
d7bddfe5
Commit
d7bddfe5
authored
Sep 24, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge davem@nuts.davemloft.net:/disk1/BK/sparc-2.6
into kernel.bkbits.net:/home/davem/sparc-2.6
parents
6caaa717
aea2fef4
Changes
2
Show 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 @
d7bddfe5
#
# Automatically generated make config: don't edit
# 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_MMU=y
...
...
@@ -259,7 +259,6 @@ CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
CONFIG_IDEDMA_ONLYDISK=y
CONFIG_BLK_DEV_ADMA=y
# CONFIG_BLK_DEV_AEC62XX is not set
CONFIG_BLK_DEV_ALI15X3=y
# CONFIG_WDC_ALI15X3 is not set
...
...
@@ -611,6 +610,7 @@ CONFIG_IP6_NF_MATCH_IPV6HEADER=m
CONFIG_IP6_NF_MATCH_AHESP=m
CONFIG_IP6_NF_MATCH_LENGTH=m
CONFIG_IP6_NF_MATCH_EUI64=m
CONFIG_IP6_NF_MATCH_PHYSDEV=m
CONFIG_IP6_NF_FILTER=m
CONFIG_IP6_NF_TARGET_LOG=m
CONFIG_IP6_NF_MANGLE=m
...
...
arch/sparc64/kernel/time.c
View file @
d7bddfe5
...
...
@@ -910,10 +910,10 @@ void __init clock_probe(void)
}
/* 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
;
int
node
,
err
;
unsigned
long
clock
;
int
node
;
#ifdef CONFIG_SMP
extern
void
smp_tick_init
(
void
);
#endif
...
...
@@ -946,6 +946,14 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
smp_tick_init
();
#endif
return
clock
;
}
static
void
sparc64_start_timers
(
irqreturn_t
(
*
cfunc
)(
int
,
void
*
,
struct
pt_regs
*
))
{
unsigned
long
pstate
;
int
err
;
/* Register IRQ handler. */
err
=
request_irq
(
build_irq
(
0
,
0
,
0UL
,
0UL
),
cfunc
,
SA_STATIC_ALLOC
,
"timer"
,
NULL
);
...
...
@@ -971,8 +979,6 @@ static unsigned long sparc64_init_timers(irqreturn_t (*cfunc)(int, void *, struc
:
"r"
(
pstate
));
local_irq_enable
();
return
clock
;
}
struct
freq_table
{
...
...
@@ -1036,11 +1042,16 @@ static struct time_interpolator sparc64_cpu_interpolator = {
#define SPARC64_NSEC_PER_CYC_SHIFT 30UL
void
__init
time_init
(
void
)
{
unsigned
long
clock
=
sparc64_init_timers
(
timer_interrupt
);
unsigned
long
clock
=
sparc64_init_timers
();
sparc64_cpu_interpolator
.
frequency
=
clock
;
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
=
(((
NSEC_PER_SEC
<<
SPARC64_NSEC_PER_CYC_SHIFT
)
+
(
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