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
9c9ad791
Commit
9c9ad791
authored
Oct 19, 2007
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] time: Delete dead code.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
723ee050
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
59 deletions
+0
-59
arch/mips/kernel/time.c
arch/mips/kernel/time.c
+0
-59
No files found.
arch/mips/kernel/time.c
View file @
9c9ad791
...
@@ -39,17 +39,6 @@
...
@@ -39,17 +39,6 @@
#include <irq.h>
#include <irq.h>
/*
* The integer part of the number of usecs per jiffy is taken from tick,
* but the fractional part is not recorded, so we calculate it using the
* initial value of HZ. This aids systems where tick isn't really an
* integer (e.g. for HZ = 128).
*/
#define USECS_PER_JIFFY TICK_SIZE
#define USECS_PER_JIFFY_FRAC ((unsigned long)(u32)((1000000ULL << 32) / HZ))
#define TICK_SIZE (tick_nsec / 1000)
/*
/*
* forward reference
* forward reference
*/
*/
...
@@ -213,54 +202,6 @@ void __init __weak plat_timer_setup(struct irqaction *irq)
...
@@ -213,54 +202,6 @@ void __init __weak plat_timer_setup(struct irqaction *irq)
{
{
}
}
#ifdef CONFIG_MIPS_MT_SMTC
DEFINE_PER_CPU
(
struct
clock_event_device
,
smtc_dummy_clockevent_device
);
static
void
smtc_set_mode
(
enum
clock_event_mode
mode
,
struct
clock_event_device
*
evt
)
{
}
static
void
mips_broadcast
(
cpumask_t
mask
)
{
unsigned
int
cpu
;
for_each_cpu_mask
(
cpu
,
mask
)
smtc_send_ipi
(
cpu
,
SMTC_CLOCK_TICK
,
0
);
}
static
void
setup_smtc_dummy_clockevent_device
(
void
)
{
//uint64_t mips_freq = mips_hpt_^frequency;
unsigned
int
cpu
=
smp_processor_id
();
struct
clock_event_device
*
cd
;
cd
=
&
per_cpu
(
smtc_dummy_clockevent_device
,
cpu
);
cd
->
name
=
"SMTC"
;
cd
->
features
=
CLOCK_EVT_FEAT_DUMMY
;
/* Calculate the min / max delta */
cd
->
mult
=
0
;
//div_sc((unsigned long) mips_freq, NSEC_PER_SEC, 32);
cd
->
shift
=
0
;
//32;
cd
->
max_delta_ns
=
0
;
//clockevent_delta2ns(0x7fffffff, cd);
cd
->
min_delta_ns
=
0
;
//clockevent_delta2ns(0x30, cd);
cd
->
rating
=
200
;
cd
->
irq
=
17
;
//-1;
// if (cpu)
// cd->cpumask = CPU_MASK_ALL; // cpumask_of_cpu(cpu);
// else
cd
->
cpumask
=
cpumask_of_cpu
(
cpu
);
cd
->
set_mode
=
smtc_set_mode
;
cd
->
broadcast
=
mips_broadcast
;
clockevents_register_device
(
cd
);
}
#endif
void
__init
time_init
(
void
)
void
__init
time_init
(
void
)
{
{
plat_time_init
();
plat_time_init
();
...
...
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