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
4588c1f0
Commit
4588c1f0
authored
Sep 06, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: HPET_MSI Basic HPET_MSI setup code, cleanups
small style cleanups. Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
58ac1e76
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
arch/x86/kernel/hpet.c
arch/x86/kernel/hpet.c
+25
-25
No files found.
arch/x86/kernel/hpet.c
View file @
4588c1f0
#include <linux/clocksource.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
#include <linux/sysdev.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/hpet.h>
#include <linux/init.h>
#include <linux/sysdev.h>
#include <linux/pm.h>
#include <linux/interrupt.h>
#include <linux/cpu.h>
#include <linux/pm.h>
#include <linux/io.h>
#include <asm/fixmap.h>
#include <asm/hpet.h>
#include <asm/i8253.h>
#include <asm/
io
.h>
#include <asm/
hpet
.h>
#define HPET_MASK CLOCKSOURCE_MASK(32)
#define HPET_SHIFT 22
...
...
@@ -70,7 +70,7 @@ static inline void hpet_clear_mapping(void)
static
int
boot_hpet_disable
;
int
hpet_force_user
;
static
int
__init
hpet_setup
(
char
*
str
)
static
int
__init
hpet_setup
(
char
*
str
)
{
if
(
str
)
{
if
(
!
strncmp
(
"disable"
,
str
,
7
))
...
...
@@ -91,7 +91,7 @@ __setup("nohpet", disable_hpet);
static
inline
int
is_hpet_capable
(
void
)
{
return
(
!
boot_hpet_disable
&&
hpet_address
)
;
return
!
boot_hpet_disable
&&
hpet_address
;
}
/*
...
...
@@ -122,7 +122,7 @@ static void hpet_reserve_platform_timers(unsigned long id)
nrtimers
=
((
id
&
HPET_ID_NUMBER
)
>>
HPET_ID_NUMBER_SHIFT
)
+
1
;
memset
(
&
hd
,
0
,
sizeof
(
hd
));
memset
(
&
hd
,
0
,
sizeof
(
hd
));
hd
.
hd_phys_address
=
hpet_address
;
hd
.
hd_address
=
hpet
;
hd
.
hd_nirqs
=
nrtimers
;
...
...
@@ -141,8 +141,8 @@ static void hpet_reserve_platform_timers(unsigned long id)
hd
.
hd_irq
[
1
]
=
HPET_LEGACY_RTC
;
for
(
i
=
2
;
i
<
nrtimers
;
timer
++
,
i
++
)
{
hd
.
hd_irq
[
i
]
=
(
readl
(
&
timer
->
hpet_config
)
&
Tn_INT_ROUTE_CNF_MASK
)
>>
Tn_INT_ROUTE_CNF_SHIFT
;
hd
.
hd_irq
[
i
]
=
(
readl
(
&
timer
->
hpet_config
)
&
Tn_INT_ROUTE_CNF_
MASK
)
>>
Tn_INT_ROUTE_CNF_
SHIFT
;
}
hpet_alloc
(
&
hd
);
...
...
@@ -244,7 +244,7 @@ static void hpet_set_mode(enum clock_event_mode mode,
unsigned
long
cfg
,
cmp
,
now
;
uint64_t
delta
;
switch
(
mode
)
{
switch
(
mode
)
{
case
CLOCK_EVT_MODE_PERIODIC
:
delta
=
((
uint64_t
)(
NSEC_PER_SEC
/
HZ
))
*
evt
->
mult
;
delta
>>=
evt
->
shift
;
...
...
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