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
6cefe92f
Commit
6cefe92f
authored
Nov 29, 2013
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARM: footbridge: add sched_clock implementation
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
e68f31f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
arch/arm/mach-footbridge/common.h
arch/arm/mach-footbridge/common.h
+2
-0
arch/arm/mach-footbridge/dc21285-timer.c
arch/arm/mach-footbridge/dc21285-timer.c
+17
-0
arch/arm/mach-footbridge/ebsa285.c
arch/arm/mach-footbridge/ebsa285.c
+1
-0
No files found.
arch/arm/mach-footbridge/common.h
View file @
6cefe92f
...
...
@@ -10,3 +10,5 @@ extern void footbridge_init_irq(void);
extern
void
isa_init_irq
(
unsigned
int
irq
);
extern
void
footbridge_restart
(
enum
reboot_mode
,
const
char
*
);
extern
void
footbridge_sched_clock
(
void
);
arch/arm/mach-footbridge/dc21285-timer.c
View file @
6cefe92f
...
...
@@ -9,6 +9,7 @@
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/sched_clock.h>
#include <asm/irq.h>
...
...
@@ -104,3 +105,19 @@ void __init footbridge_timer_init(void)
ce
->
cpumask
=
cpumask_of
(
smp_processor_id
());
clockevents_config_and_register
(
ce
,
mem_fclk_21285
,
0x4
,
0xffffff
);
}
static
u32
notrace
footbridge_read_sched_clock
(
void
)
{
return
~*
CSR_TIMER3_VALUE
;
}
void
__init
footbridge_sched_clock
(
void
)
{
unsigned
rate
=
DIV_ROUND_CLOSEST
(
mem_fclk_21285
,
16
);
*
CSR_TIMER3_LOAD
=
0
;
*
CSR_TIMER3_CLR
=
0
;
*
CSR_TIMER3_CNTL
=
TIMER_CNTL_ENABLE
|
TIMER_CNTL_DIV16
;
setup_sched_clock
(
footbridge_read_sched_clock
,
24
,
rate
);
}
arch/arm/mach-footbridge/ebsa285.c
View file @
6cefe92f
...
...
@@ -104,6 +104,7 @@ MACHINE_START(EBSA285, "EBSA285")
.
video_start
=
0x000a0000
,
.
video_end
=
0x000bffff
,
.
map_io
=
footbridge_map_io
,
.
init_early
=
footbridge_sched_clock
,
.
init_irq
=
footbridge_init_irq
,
.
init_time
=
footbridge_timer_init
,
.
restart
=
footbridge_restart
,
...
...
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