improve cpu-freq logging

Also don't try to map unset cpu-freq to lowest numeric value (was
looking for NO_VAL rather than zero)