sysfs: consolidate cgroup processing code in a single function
sysfs: consolidate cgroup processing code in a single function

williamh/openrc,OpenRC/openrc,OpenRC/openrc,williamh/openrc,OpenRC/openrc,dwfreed/openrc,williamh/openrc,dwfreed/openrc,dwfreed/openrc