Runtime Control and Optimization Techniques for SoC Power Management