'Returns whether kernel configuration CGROUP_SCHED is enabled
CONFIG_CGROUP_SCHED may be disabled in some kernel configs to
improve scheduler latency.'

def is_cpu_control_policy_capable(self):

    try:
        with open('/proc/self/mounts', 'r') as fd:
            for line in fd.readlines():
                bits = line.split()[3].split(',')
                if ('cpu' in bits):
                    return True
            return False
    except IOError:
        return False
