msm7x27a-common: refactor post_boot script

strip out all the unneeded crap, do indentation properly, and optimise scaling minimum frequency detection