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
c9a98e18
Commit
c9a98e18
authored
Jun 25, 2014
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: update some comments
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
2b75c0f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
arch/arc/kernel/time.c
arch/arc/kernel/time.c
+7
-3
arch/arc/mm/tlbex.S
arch/arc/mm/tlbex.S
+2
-2
No files found.
arch/arc/kernel/time.c
View file @
c9a98e18
...
...
@@ -144,12 +144,12 @@ static struct clocksource arc_counter = {
/********** Clock Event Device *********/
/*
* Arm the timer to interrupt after @
limit
cycles
* Arm the timer to interrupt after @cycles
* The distinction for oneshot/periodic is done in arc_event_timer_ack() below
*/
static
void
arc_timer_event_setup
(
unsigned
int
limit
)
static
void
arc_timer_event_setup
(
unsigned
int
cycles
)
{
write_aux_reg
(
ARC_REG_TIMER0_LIMIT
,
limit
);
write_aux_reg
(
ARC_REG_TIMER0_LIMIT
,
cycles
);
write_aux_reg
(
ARC_REG_TIMER0_CNT
,
0
);
/* start from 0 */
write_aux_reg
(
ARC_REG_TIMER0_CTRL
,
TIMER_CTRL_IE
|
TIMER_CTRL_NH
);
...
...
@@ -168,6 +168,10 @@ static void arc_clkevent_set_mode(enum clock_event_mode mode,
{
switch
(
mode
)
{
case
CLOCK_EVT_MODE_PERIODIC
:
/*
* At X Hz, 1 sec = 1000ms -> X cycles;
* 10ms -> X / 100 cycles
*/
arc_timer_event_setup
(
arc_get_core_freq
()
/
HZ
);
break
;
case
CLOCK_EVT_MODE_ONESHOT
:
...
...
arch/arc/mm/tlbex.S
View file @
c9a98e18
...
...
@@ -220,9 +220,9 @@ ex_saved_reg1:
.
macro
CONV_PTE_TO_TLB
and
r3
,
r0
,
PTE_BITS_RWX
; r w x
lsl
r2
,
r3
,
3
; r w x 0 0 0
lsl
r2
,
r3
,
3
; r w x 0 0 0
(GLOBAL, kernel only)
and.f
0
,
r0
,
_PAGE_GLOBAL
or.z
r2
,
r2
,
r3
; r w x r w x
or.z
r2
,
r2
,
r3
; r w x r w x
(!GLOBAL, user page)
and
r3
,
r0
,
PTE_BITS_NON_RWX_IN_PD1
; Extract PFN+cache bits from PTE
or
r3
,
r3
,
r2
...
...
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