Skip to content
Commit fb3600cc authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

KVM: Use syscore_ops instead of sysdev class and sysdev



KVM uses a sysdev class and a sysdev for executing kvm_suspend()
after interrupts have been turned off on the boot CPU (during system
suspend) and for executing kvm_resume() before turning on interrupts
on the boot CPU (during system resume).  However, since both of these
functions ignore their arguments, the entire mechanism may be
replaced with a struct syscore_ops object which is simpler.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Acked-by: default avatarAvi Kivity <avi@redhat.com>
parent 134fac3f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment