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
fdb9eb9f
Commit
fdb9eb9f
authored
Mar 26, 2010
by
Jeremy Fitzhardinge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xen/dom0: set wallclock time in Xen
Signed-off-by:
Jeremy Fitzhardinge
<
jeremy.fitzhardinge@citrix.com
>
parent
eec07a9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
arch/x86/xen/time.c
arch/x86/xen/time.c
+15
-1
No files found.
arch/x86/xen/time.c
View file @
fdb9eb9f
...
@@ -200,8 +200,22 @@ static unsigned long xen_get_wallclock(void)
...
@@ -200,8 +200,22 @@ static unsigned long xen_get_wallclock(void)
static
int
xen_set_wallclock
(
unsigned
long
now
)
static
int
xen_set_wallclock
(
unsigned
long
now
)
{
{
struct
xen_platform_op
op
;
int
rc
;
/* do nothing for domU */
/* do nothing for domU */
if
(
!
xen_initial_domain
())
return
-
1
;
return
-
1
;
op
.
cmd
=
XENPF_settime
;
op
.
u
.
settime
.
secs
=
now
;
op
.
u
.
settime
.
nsecs
=
0
;
op
.
u
.
settime
.
system_time
=
xen_clocksource_read
();
rc
=
HYPERVISOR_dom0_op
(
&
op
);
WARN
(
rc
!=
0
,
"XENPF_settime failed: now=%ld
\n
"
,
now
);
return
rc
;
}
}
static
struct
clocksource
xen_clocksource
__read_mostly
=
{
static
struct
clocksource
xen_clocksource
__read_mostly
=
{
...
...
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