예제 #1
0
 public static List<Integer> getCpuBootInputFreq() {
   List<Integer> list = new ArrayList<>();
   String value = Utils.readFile(CPU_BOOST_INPUT_BOOST_FREQ);
   for (String core : value.split(" ")) {
     if (core.contains(":")) core = core.split(":")[1];
     if (core.equals("0")) list.add(0);
     else list.add(CPU.getFreqs().indexOf(Utils.stringToInt(core)) + 1);
   }
   return list;
 }
예제 #2
0
 public static int getCpuBootSyncThreshold() {
   String value = Utils.readFile(CPU_BOOST_SYNC_THRESHOLD);
   if (value.equals("0")) return 0;
   return CPU.getFreqs().indexOf(Utils.stringToInt(value)) + 1;
 }