Code cleanup.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Added support for changing the core (GPU) and IVA voltages.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
The mutex 'omap_dvfs_lock' is also locked when changing the MPU,
core or IVA voltages to prevent requested GPU and IVA OPP changes
from interfering.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
Properly account for the possibility of several frequencies having the
same voltage dependency. When changing the core voltages the voltage
dependencies in the OPP of L3, GPU, FDIF and HSI are adjusted. When
changing the IVA voltages the voltage dependencies in the OPP of IVA,
DSP and AESS are adjusted.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
1. When the voltages are changed also adjust the requested voltage
   values for that domain.
2. Properly account for the possibility of the number of entries in
   the voltage dependency tables being different from the number of
   supported voltages is the corresponding domains.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>
arch: omap: add userspace export of the current GPU clock. Works mostly like scaling_cur_freq.

Signed-off-by: franciscofranco <franciscofranco.1990@gmail.com>
Signed-off-by: Francisco Franco <franciscofranco.1990@gmail.com>