[powerdebug 31/35] simplify clock_init function