drm/nouveau: expose pstate selection per-power source in sysfs
authorBen Skeggs <bskeggs@redhat.com>
Fri, 13 Jun 2014 04:17:09 +0000 (14:17 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Sat, 9 Aug 2014 19:11:08 +0000 (05:11 +1000)
commit7238eca4cf18a5bba8679afc8c71a274e264f82e
tree96014d6d02c4c8c6db819e36a70bbf4d8d986f78
parent7e1ee6333c32a4b83aad430a4bcb8a7057f36194
drm/nouveau: expose pstate selection per-power source in sysfs

echo ac:id >> pstate # select mode when on mains power
echo dc:id >> pstate # select mode when on battery
echo id >> pstate # select mode for both

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/device/ctrl.c
drivers/gpu/drm/nouveau/core/include/core/class.h
drivers/gpu/drm/nouveau/nouveau_sysfs.c