Skip to content

Commit

Permalink
Merge branch 'upstream/bugfix' of git://github.com/jsgf/linux-xen
Browse files Browse the repository at this point in the history
* 'upstream/bugfix' of git://github.com/jsgf/linux-xen:
  xen: use non-tracing preempt in xen_clocksource_read()
  • Loading branch information
Linus Torvalds committed Sep 13, 2011
2 parents b6fd41e + f1c3962 commit d954331
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/x86/xen/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ cycle_t xen_clocksource_read(void)
struct pvclock_vcpu_time_info *src;
cycle_t ret;

src = &get_cpu_var(xen_vcpu)->time;
preempt_disable_notrace();
src = &__get_cpu_var(xen_vcpu)->time;
ret = pvclock_clocksource_read(src);
put_cpu_var(xen_vcpu);
preempt_enable_notrace();
return ret;
}

Expand Down

0 comments on commit d954331

Please sign in to comment.