mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
1f03b2bcd0
Accessing a per-cpu variable only makes sense when preemption is
disabled (and the kernel does check this when the right debug options
are switched on).
For kvm_get_running_vcpu(), it is fine to return the value after
re-enabling preemption, as the preempt notifiers will make sure that
this is kept consistent across task migration (the comment above the
function hints at it, but lacks the crucial preemption management).
While we're at it, move the comment from the ARM code, which explains
why the whole thing works.
Fixes:
|
||
---|---|---|
.. | ||
kvm | ||
lib | ||
Makefile |