def discover_idle_states(self):
        online_cpu = self.device.get_online_cpus(self.big_core)[0]
        self.big_idle_states = self.device.get_cpuidle_states(online_cpu)
        online_cpu = self.device.get_online_cpus(self.little_core)[0]
        self.little_idle_states = self.device.get_cpuidle_states(online_cpu)
        if not (len(self.big_idle_states) >= 2 and len(self.little_idle_states) >= 2):
            raise DeviceError('There do not appeart to be at least two idle states '
                              'on at least one of the clusters.')
dataset/ETHPy150Open ARM-software/workload-automation/wlauto/instrumentation/energy_model/__init__.py/EnergyModelInstrument.discover_idle_states/original