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
nexedi
linux
Commits
656db506
Commit
656db506
authored
Oct 26, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] time: Cause platform definitions of plat_timer_setup to cause error.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
0d0cc920
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
arch/mips/kernel/time.c
arch/mips/kernel/time.c
+12
-5
No files found.
arch/mips/kernel/time.c
View file @
656db506
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
* Free Software Foundation; either version 2 of the License, or (at your
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
* option) any later version.
*/
*/
#include <linux/bug.h>
#include <linux/clockchips.h>
#include <linux/clockchips.h>
#include <linux/types.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/kernel.h>
...
@@ -115,10 +116,6 @@ EXPORT_SYMBOL(perf_irq);
...
@@ -115,10 +116,6 @@ EXPORT_SYMBOL(perf_irq);
* (only needed if you intended to use cpu counter as timer interrupt
* (only needed if you intended to use cpu counter as timer interrupt
* source)
* source)
* 2) calculate a couple of cached variables for later usage
* 2) calculate a couple of cached variables for later usage
* 3) plat_timer_setup() -
* a) (optional) over-write any choices made above by time_init().
* b) machine specific code should setup the timer irqaction.
* c) enable the timer interrupt
*/
*/
unsigned
int
mips_hpt_frequency
;
unsigned
int
mips_hpt_frequency
;
...
@@ -221,8 +218,18 @@ void __init __weak plat_time_init(void)
...
@@ -221,8 +218,18 @@ void __init __weak plat_time_init(void)
{
{
}
}
void
__init
__weak
plat_timer_setup
(
struct
irqaction
*
irq
)
/*
* This function exists in order to cause an error due to a duplicate
* definition if platform code should have its own implementation. The hook
* to use instead is plat_time_init. plat_time_init does not receive the
* irqaction pointer argument anymore. This is because any function which
* initializes an interrupt timer now takes care of its own request_irq rsp.
* setup_irq calls and each clock_event_device should use its own
* struct irqrequest.
*/
void
__init
plat_timer_setup
(
struct
irqaction
*
irq
)
{
{
BUG
();
}
}
void
__init
time_init
(
void
)
void
__init
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