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
5b9bd178
Commit
5b9bd178
authored
Mar 07, 2015
by
Vineet Gupta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ARC: clocksource cleanups
Signed-off-by:
Vineet Gupta
<
vgupta@synopsys.com
>
parent
565a9b49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
arch/arc/kernel/time.c
arch/arc/kernel/time.c
+2
-10
No files found.
arch/arc/kernel/time.c
View file @
5b9bd178
...
...
@@ -60,15 +60,6 @@
/********** Clock Source Device *********/
static
bool
is_usable_as_clocksource
(
void
)
{
#ifdef CONFIG_SMP
return
0
;
#else
return
1
;
#endif
}
/*
* set 32bit TIMER1 to keep counting monotonically and wraparound
*/
...
...
@@ -78,7 +69,8 @@ int arc_counter_setup(void)
write_aux_reg
(
ARC_REG_TIMER1_CNT
,
0
);
write_aux_reg
(
ARC_REG_TIMER1_CTRL
,
TIMER_CTRL_NH
);
return
is_usable_as_clocksource
();
/* Not usable in SMP */
return
!
IS_ENABLED
(
CONFIG_SMP
);
}
static
cycle_t
arc_counter_read
(
struct
clocksource
*
cs
)
...
...
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