I wouldn't be surprised if some dev writes a quick shell script to figure it out. It would just be a matter of increasing the clock speed by a bit, doing a stability test, and if it passes, writing out the clock speed to a file (overwriting its contents). It would keep looping till the stability test failed (often apparent because the device just hangs/kernel panic).