Revert "acpuclock: revert static get_rate"

This reverts commit da6f2f3d8e4e4f8ec908a1068944155e8194ad9d.
Revert "acpuclock: revert perflock changes"

This reverts commit a7dfb4bbd02aa30bfb06b46eb50cb4447adeb85d.