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
87b2335d
Commit
87b2335d
authored
Oct 11, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] IP27: Add clocksource drivers
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
584d98be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
arch/mips/sgi-ip27/ip27-timer.c
arch/mips/sgi-ip27/ip27-timer.c
+11
-3
No files found.
arch/mips/sgi-ip27/ip27-timer.c
View file @
87b2335d
...
@@ -200,15 +200,23 @@ void __init plat_timer_setup(struct irqaction *irq)
...
@@ -200,15 +200,23 @@ void __init plat_timer_setup(struct irqaction *irq)
setup_irq
(
irqno
,
&
rt_irqaction
);
setup_irq
(
irqno
,
&
rt_irqaction
);
}
}
static
cycle_t
ip27_hp
t_read
(
void
)
static
cycle_t
hub_r
t_read
(
void
)
{
{
return
REMOTE_HUB_L
(
cputonasid
(
0
),
PI_RT_COUNT
);
return
REMOTE_HUB_L
(
cputonasid
(
0
),
PI_RT_COUNT
);
}
}
struct
clocksource
ht_rt_clocksource
=
{
.
name
=
"HUB"
,
.
rating
=
200
,
.
read
=
hub_rt_read
,
.
mask
=
CLOCKSOURCE_MASK
(
52
),
.
shift
=
32
,
.
flags
=
CLOCK_SOURCE_IS_CONTINUOUS
,
};
void
__init
plat_time_init
(
void
)
void
__init
plat_time_init
(
void
)
{
{
clocksource_mips
.
read
=
ip27_hpt_read
;
clocksource_register
(
&
ht_rt_clocksource
);
mips_hpt_frequency
=
CYCLES_PER_SEC
;
}
}
void
__init
cpu_time_init
(
void
)
void
__init
cpu_time_init
(
void
)
...
...
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