On-line thermal aware dynamic voltage scaling for energy optimization with frequency/temperature dependency consideration