intel_rapl: cleanup some functions