function for checking available frequency

def available_freq():
    """
    function for checking available frequency
    """
    _file = open(CPU_PREFIX + 'cpu0/cpufreq/scaling_available_frequencies')

    freq = [int(_file) for _file in _file.read().strip().split()]

    _file.close()

    return freq