gpu: Add gpu3DDefault clock sysfs entry, cleanup GPU clock control behavior
The previous implementation had issues when changing the requested clock values during thermal throtteling. To clean this up there are now three entries in the sysfs:
-
gpu3DClockScale Readonly, giving the current clock ratio
-
gpu3DDefaultClock Clock speed used in normal mode, 64/64 is the default
-
gpu3DMinClock Clock speed used in high temperature mode, 1/64 is the default
Writing to gpu3DDefaultClock and gpu3DMinClock can be used to modify the clock. If the GPU is in the related mode, the clock change directly affects the GPU clock.