mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
The goldfish battery irq will be used to notify the guest driver that battery/ac status changed. And the status changing will be done through external crosvm commands. So the irq injection needs to be done in a seperate thread which can receive these commands. BUG=chromium:1050432 BUG=b:137890633 TEST=create VM with parameter "--battery" or "--battery=type=goldfish" and boot linux guest with goldfish_battery driver enabled. The sysfs created by the goldfish_battery driver have no issue observed. TEST=goldfish_battery driver is loaded on ARCVM and interrupts are enabled Change-Id: Icc902dd8c00bdcf6cb271b20d928a4081533dde6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2119573 Commit-Queue: Alex Lau <alexlau@chromium.org> Tested-by: Alex Lau <alexlau@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
5 lines
221 B
Text
5 lines
221 B
Text
# Copyright 2020 The Chromium OS Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
@include /usr/share/policy/crosvm/common_device.policy
|