summarylogtreecommitdiffstats
path: root/0002-cpufrequtils-Remove-proc-compile-option-and-interfac.patch
blob: b2ae53340641c58e381ff5615a67535a56cd1674 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
From adb7e044755aa06b12212d05c4acbcccb023d2cd Mon Sep 17 00:00:00 2001
From: Thomas Renninger <trenn@suse.de>
Date: Wed, 1 Sep 2010 02:18:00 +0200
Subject: [PATCH 2/8] cpufrequtils: Remove proc compile option and interfaces

proc cpufreq kernel support is deprecated since the beginning of 2.6?)
If someone still likes to have support for the 2.4 cpufreq proc
interface one has to pick out an old cpufrequtils version
from now on...

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
---
 Makefile         |   29 +-------
 lib/cpufreq.c    |   99 +++++--------------------
 lib/interfaces.h |   76 -------------------
 lib/proc.c       |  216 ------------------------------------------------------
 lib/sysfs.h      |   18 +++++
 po/cs.po         |  186 +++++++++++++++++++++++++++-------------------
 po/de.po         |    2 +-
 po/fr.po         |  187 +++++++++++++++++++++++++++-------------------
 po/it.po         |    2 +-
 po/pt.po         |    2 +-
 10 files changed, 264 insertions(+), 553 deletions(-)
 delete mode 100644 lib/interfaces.h
 delete mode 100644 lib/proc.c
 create mode 100644 lib/sysfs.h

diff --git a/Makefile b/Makefile
index 3ef2af7..e23c644 100644
--- a/Makefile
+++ b/Makefile
@@ -37,13 +37,6 @@ NLS ?=		true
 # cpufreq-bench benchmarking tool
 CPUFRQ_BENCH ?= false
 
-# Use the sysfs-based interface which is included in all 2.6 kernels
-# built with cpufreq support
-SYSFS ?=	true
-
-# Use the proc-based interface which is used in the 2.4 patch for cpufreq
-PROC ?=		true
-
 # Prefix to the directories we're installing to
 DESTDIR ?=	
 
@@ -119,24 +112,12 @@ CPPFLAGS += -DVERSION=\"$(VERSION)\" -DPACKAGE=\"$(PACKAGE)\" \
 		-DPACKAGE_BUGREPORT=\"$(PACKAGE_BUGREPORT)\" -D_GNU_SOURCE
 
 UTIL_SRC = 	utils/info.c utils/set.c utils/aperf.c utils/cpuid.h
-LIB_HEADERS = 	lib/cpufreq.h lib/interfaces.h
-LIB_SRC = 	lib/cpufreq.c
-LIB_OBJS = 	lib/cpufreq.o
+LIB_HEADERS = 	lib/cpufreq.h lib/sysfs.h
+LIB_SRC = 	lib/cpufreq.c lib/sysfs.c
+LIB_OBJS = 	lib/cpufreq.o lib/sysfs.o
 
 CFLAGS +=	-pipe
 
-ifeq ($(strip $(PROC)),true)
-	LIB_OBJS += lib/proc.o
-	LIB_SRC += lib/proc.c
-	CPPFLAGS += -DINTERFACE_PROC
-endif
-
-ifeq ($(strip $(SYSFS)),true)
-	LIB_OBJS += lib/sysfs.o
-	LIB_SRC += lib/sysfs.c
-	CPPFLAGS += -DINTERFACE_SYSFS
-endif
-
 ifeq ($(strip $(NLS)),true)
 	INSTALL_NLS += install-gmo
 	COMPILE_NLS += update-gmo
@@ -183,10 +164,6 @@ lib/%.o: $(LIB_SRC) $(LIB_HEADERS) build/ccdv
 	$(QUIET) $(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -o $@ -c lib/$*.c
 
 libcpufreq.so.$(LIB_MAJ): $(LIB_OBJS)
-	@if [ $(strip $(SYSFS)) != true -a $(strip $(PROC)) != true ]; then \
-		echo '*** At least one of /sys support or /proc support MUST be enabled ***'; \
-		exit -1; \
-	fi;
 	$(QUIET) $(CC) -shared $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ \
 		-Wl,-soname,libcpufreq.so.$(LIB_MIN) $(LIB_OBJS)
 	@ln -sf $@ libcpufreq.so
diff --git a/lib/cpufreq.c b/lib/cpufreq.c
index 0c9f28e..603dbf8 100644
--- a/lib/cpufreq.c
+++ b/lib/cpufreq.c
@@ -11,60 +11,39 @@
 #include <string.h>
 
 #include "cpufreq.h"
-#include "interfaces.h"
+#include "sysfs.h"
 
 int cpufreq_cpu_exists(unsigned int cpu)
 {
-	int ret = sysfs_cpu_exists(cpu);
-	if (ret == -ENOSYS)
-		ret = proc_cpu_exists(cpu);
-	return (ret);
+	return sysfs_cpu_exists(cpu);
 }
 
 unsigned long cpufreq_get_freq_kernel(unsigned int cpu)
 {
-	unsigned long ret = sysfs_get_freq_kernel(cpu);
-	if (!ret)
-		ret = proc_get_freq_kernel(cpu);
-	return (ret);
+	return sysfs_get_freq_kernel(cpu);
 }
 
 unsigned long cpufreq_get_freq_hardware(unsigned int cpu)
 {
-	unsigned long ret = sysfs_get_freq_hardware(cpu);
-	if (!ret)
-		ret = proc_get_freq_hardware(cpu);
-	return (ret);
+	return sysfs_get_freq_hardware(cpu);
 }
 
 unsigned long cpufreq_get_transition_latency(unsigned int cpu)
 {
-	unsigned long ret = sysfs_get_transition_latency(cpu);
-	if (!ret)
-		ret = proc_get_transition_latency(cpu);
-	return (ret);
+	return sysfs_get_transition_latency(cpu);
 }
 
 int cpufreq_get_hardware_limits(unsigned int cpu,
 				unsigned long *min,
 				unsigned long *max)
 {
-	int ret;
 	if ((!min) || (!max))
 		return -EINVAL;
-	ret = sysfs_get_hardware_limits(cpu, min, max);
-	if (ret)
-		ret = proc_get_hardware_limits(cpu, min, max);
-	return (ret);
+	return sysfs_get_hardware_limits(cpu, min, max);
 }
 
 char * cpufreq_get_driver(unsigned int cpu) {
-	char * ret;
-	ret = sysfs_get_driver(cpu);
-	if (!ret) {
-		ret = proc_get_driver(cpu);
-	}
-	return (ret);
+	return sysfs_get_driver(cpu);
 }
 
 void cpufreq_put_driver(char * ptr) {
@@ -74,11 +53,7 @@ void cpufreq_put_driver(char * ptr) {
 }
 
 struct cpufreq_policy * cpufreq_get_policy(unsigned int cpu) {
-	struct cpufreq_policy * ret;
-	ret = sysfs_get_policy(cpu);
-	if (!ret)
-		ret = proc_get_policy(cpu);
-	return (ret);
+	return sysfs_get_policy(cpu);
 }
 
 void cpufreq_put_policy(struct cpufreq_policy *policy) {
@@ -91,11 +66,7 @@ void cpufreq_put_policy(struct cpufreq_policy *policy) {
 }
 
 struct cpufreq_available_governors * cpufreq_get_available_governors(unsigned int cpu) {
-	struct cpufreq_available_governors *ret;
-	ret = sysfs_get_available_governors(cpu);
-	if (!ret)
-		ret = proc_get_available_governors(cpu);
-	return (ret);
+	return sysfs_get_available_governors(cpu);
 }
 
 void cpufreq_put_available_governors(struct cpufreq_available_governors *any) {
@@ -116,11 +87,7 @@ void cpufreq_put_available_governors(struct cpufreq_available_governors *any) {
 
 
 struct cpufreq_available_frequencies * cpufreq_get_available_frequencies(unsigned int cpu) {
-	struct cpufreq_available_frequencies * ret;
-	ret = sysfs_get_available_frequencies(cpu);
-	if (!ret)
-		ret = proc_get_available_frequencies(cpu);
-	return (ret);
+	return sysfs_get_available_frequencies(cpu);
 }
 
 void cpufreq_put_available_frequencies(struct cpufreq_available_frequencies *any) {
@@ -139,11 +106,7 @@ void cpufreq_put_available_frequencies(struct cpufreq_available_frequencies *any
 
 
 struct cpufreq_affected_cpus * cpufreq_get_affected_cpus(unsigned int cpu) {
-	struct cpufreq_affected_cpus * ret;
-	ret = sysfs_get_affected_cpus(cpu);
-	if (!ret)
-		ret = proc_get_affected_cpus(cpu);
-	return (ret);
+	return sysfs_get_affected_cpus(cpu);
 }
 
 void cpufreq_put_affected_cpus(struct cpufreq_affected_cpus *any) {
@@ -162,11 +125,7 @@ void cpufreq_put_affected_cpus(struct cpufreq_affected_cpus *any) {
 
 
 struct cpufreq_affected_cpus * cpufreq_get_related_cpus(unsigned int cpu) {
-	struct cpufreq_affected_cpus * ret;
-	ret = sysfs_get_related_cpus(cpu);
-	if (!ret)
-		ret = proc_get_related_cpus(cpu);
-	return (ret);
+	return sysfs_get_related_cpus(cpu);
 }
 
 void cpufreq_put_related_cpus(struct cpufreq_affected_cpus *any) {
@@ -175,56 +134,32 @@ void cpufreq_put_related_cpus(struct cpufreq_affected_cpus *any) {
 
 
 int cpufreq_set_policy(unsigned int cpu, struct cpufreq_policy *policy) {
-	int ret;
 	if (!policy || !(policy->governor))
 		return -EINVAL;
 
-	ret = sysfs_set_policy(cpu, policy);
-	if (ret)
-		ret = proc_set_policy(cpu, policy);
-	return (ret);
+	return sysfs_set_policy(cpu, policy);
 }
 
 
 int cpufreq_modify_policy_min(unsigned int cpu, unsigned long min_freq) {
-	int ret;
-
-	ret = sysfs_modify_policy_min(cpu, min_freq);
-	if (ret)
-		ret = proc_modify_policy_min(cpu, min_freq);
-	return (ret);
+	return sysfs_modify_policy_min(cpu, min_freq);
 }
 
 
 int cpufreq_modify_policy_max(unsigned int cpu, unsigned long max_freq) {
-	int ret;
-
-	ret = sysfs_modify_policy_max(cpu, max_freq);
-	if (ret)
-		ret = proc_modify_policy_max(cpu, max_freq);
-	return (ret);
+	return sysfs_modify_policy_max(cpu, max_freq);
 }
 
 
 int cpufreq_modify_policy_governor(unsigned int cpu, char *governor) {
-	int ret;
-
 	if ((!governor) || (strlen(governor) > 19))
 		return -EINVAL;
 
-	ret = sysfs_modify_policy_governor(cpu, governor);
-	if (ret)
-		ret = proc_modify_policy_governor(cpu, governor);
-	return (ret);
+	return sysfs_modify_policy_governor(cpu, governor);
 }
 
 int cpufreq_set_frequency(unsigned int cpu, unsigned long target_frequency) {
-	int ret;
-
-	ret = sysfs_set_frequency(cpu, target_frequency);
-	if (ret)
-		ret = proc_set_frequency(cpu, target_frequency);
-	return (ret);
+	return sysfs_set_frequency(cpu, target_frequency);
 }
 
 struct cpufreq_stats * cpufreq_get_stats(unsigned int cpu, unsigned long long *total_time) {
diff --git a/lib/interfaces.h b/lib/interfaces.h
deleted file mode 100644
index 67ee131..0000000
--- a/lib/interfaces.h
+++ /dev/null
@@ -1,76 +0,0 @@
-#ifdef INTERFACE_SYSFS
-
-extern unsigned int sysfs_cpu_exists(unsigned int cpu);
-extern unsigned long sysfs_get_freq_kernel(unsigned int cpu);
-extern unsigned long sysfs_get_freq_hardware(unsigned int cpu);
-extern unsigned long sysfs_get_transition_latency(unsigned int cpu);
-extern int sysfs_get_hardware_limits(unsigned int cpu, unsigned long *min, unsigned long *max);
-extern char * sysfs_get_driver(unsigned int cpu);
-extern struct cpufreq_policy * sysfs_get_policy(unsigned int cpu);
-extern struct cpufreq_available_governors * sysfs_get_available_governors(unsigned int cpu);
-extern struct cpufreq_available_frequencies * sysfs_get_available_frequencies(unsigned int cpu);
-extern struct cpufreq_affected_cpus * sysfs_get_affected_cpus(unsigned int cpu);
-extern struct cpufreq_affected_cpus * sysfs_get_related_cpus(unsigned int cpu);
-extern struct cpufreq_stats * sysfs_get_stats(unsigned int cpu, unsigned long long *total_time);
-extern unsigned long sysfs_get_transitions(unsigned int cpu);
-extern int sysfs_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
-extern int sysfs_modify_policy_min(unsigned int cpu, unsigned long min_freq);
-extern int sysfs_modify_policy_max(unsigned int cpu, unsigned long max_freq);
-extern int sysfs_modify_policy_governor(unsigned int cpu, char *governor);
-extern int sysfs_set_frequency(unsigned int cpu, unsigned long target_frequency);
-
-#else
-
-static inline unsigned int sysfs_cpu_exists(unsigned int cpu) { return -ENOSYS; }
-static inline unsigned long sysfs_get_freq_kernel(unsigned int cpu) { return 0; }
-static inline unsigned long sysfs_get_freq_hardware(unsigned int cpu) { return 0; }
-static inline unsigned long sysfs_get_transition_latency(unsigned int cpu) { return 0; }
-static inline int sysfs_get_hardware_limits(unsigned int cpu, unsigned long *min, unsigned long *max)  { return -ENOSYS; }
-static inline char * sysfs_get_driver(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_policy * sysfs_get_policy(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_available_governors * sysfs_get_available_governors(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_available_frequencies * sysfs_get_available_frequencies(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_affected_cpus * sysfs_get_affected_cpus(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_related_cpus * sysfs_get_affected_cpus(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_stats * sysfs_get_stats(unsigned int cpu, unsigned long long *total_time) { return NULL; }
-static inline unsigned long sysfs_get_transitions(unsigned int cpu) { return 0; }
-static inline int sysfs_set_policy(unsigned int cpu, struct cpufreq_policy *policy) { return -ENOSYS; }
-static inline int sysfs_modify_policy_min(unsigned int cpu, unsigned long min_freq) { return -ENOSYS; }
-static inline int sysfs_modify_policy_max(unsigned int cpu, unsigned long max_freq) { return -ENOSYS; }
-static inline int sysfs_modify_policy_governor(unsigned int cpu, char *governor) { return -ENOSYS; }
-static inline int sysfs_set_frequency(unsigned int cpu, unsigned long target_frequency) { return -ENOSYS; }
-
-#endif
-
-
-#ifdef INTERFACE_PROC
-
-extern int proc_cpu_exists(unsigned int cpu);
-extern unsigned long proc_get_freq_kernel(unsigned int cpu);
-extern struct cpufreq_policy * proc_get_policy(unsigned int cpu);
-extern int proc_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
-extern int proc_set_frequency(unsigned int cpu, unsigned long target_frequency);
-#else
-
-static inline int proc_cpu_exists(unsigned int cpu) {return -ENOSYS; }
-static inline unsigned long proc_get_freq_kernel(unsigned int cpu) { return 0; }
-static inline struct cpufreq_policy * proc_get_policy(unsigned int cpu) { return NULL; }
-static inline int proc_set_policy(unsigned int cpu, struct cpufreq_policy *policy) { return -ENOSYS; }
-static inline int proc_set_frequency(unsigned int cpu, unsigned long target_frequency) { return -ENOSYS; }
-
-#endif
-
-/* these aren't implemented in /proc, and probably never will...*/
-
-static inline unsigned long proc_get_freq_hardware(unsigned int cpu) { return 0; }
-static inline unsigned long proc_get_transition_latency(unsigned int cpu) { return -ENOSYS; }
-static inline int proc_get_hardware_limits(unsigned int cpu, unsigned long *min, unsigned long *max)  { return -ENOSYS; }
-static inline char * proc_get_driver(unsigned int cpu) {return NULL; }
-static inline struct cpufreq_available_governors * proc_get_available_governors(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_available_frequencies * proc_get_available_frequencies(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_affected_cpus * proc_get_affected_cpus(unsigned int cpu) { return NULL; }
-static inline struct cpufreq_affected_cpus * proc_get_related_cpus(unsigned int cpu) { return NULL; }
-static inline int proc_modify_policy_min(unsigned int cpu, unsigned long min_freq) { return -ENOSYS; }
-static inline int proc_modify_policy_max(unsigned int cpu, unsigned long max_freq) { return -ENOSYS; }
-static inline int proc_modify_policy_governor(unsigned int cpu, char *governor) { return -ENOSYS; }
-
diff --git a/lib/proc.c b/lib/proc.c
deleted file mode 100644
index 38d8483..0000000
--- a/lib/proc.c
+++ /dev/null
@@ -1,216 +0,0 @@
-/*
- *  (C) 2004  Dominik Brodowski <linux@dominikbrodowski.de>
- *
- *  Licensed under the terms of the GNU GPL License version 2.
- */
-
-#include <stdio.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-
-#include "cpufreq.h"
-
-#define MAX_LINE_LEN 255
-
-static int readout_proc_cpufreq(unsigned int cpu, unsigned long *min, unsigned long *max, char **governor)
-{
-	FILE *fp;
-	char value[MAX_LINE_LEN];
-	char gov_value[MAX_LINE_LEN];
-	int ret = -ENODEV;
-	unsigned int cpu_read;
-	unsigned int tmp1, tmp2;
-
-	if ((!min) || (!max) || (!governor))
-		return -EINVAL;
-
-	fp = fopen("/proc/cpufreq","r");
-	if (!fp)
-		return -ENODEV;
-
-
-	if (!fgets(value, MAX_LINE_LEN, fp)) {
-		ret = -EIO;
-		goto error;
-	}
-
-	if (strlen(value) > (MAX_LINE_LEN - 10)) {
-		ret = -EIO;
-		goto error;
-	}
-
-	while(!feof(fp)) {
-		if (!fgets(value, MAX_LINE_LEN, fp)) {
-			ret = -EIO;
-			goto error;
-		}
-
-		if (strlen(value) > (MAX_LINE_LEN - 10)) {
-			ret = -EIO;
-			goto error;
-		}
-
-		ret = sscanf(value, "CPU%3d    %9lu kHz (%3d %%)  -  %9lu kHz (%3d %%)  -  %s",
-			     &cpu_read , min, &tmp1, max, &tmp2, gov_value);
-		if (ret != 6) {
-			ret = -EIO;
-			goto error;
-		}
-
-		if (cpu_read != cpu)
-			continue;
-
-		if ((tmp2 < tmp1) || (tmp2 > 100) || (*max < *min)) {
-			ret = -ENOSYS;
-			goto error;
-		}
-
-		tmp1 = strlen(gov_value);
-		if (tmp1 > 20) {
-			ret = -ENOSYS;
-			goto error;
-		}
-
-		*governor = malloc(sizeof(char) * (tmp1 + 2));
-		if (!*governor) {
-			ret = -ENOMEM;
-			goto error;
-		}
-
-		strncpy(*governor, gov_value, tmp1);
-		(*governor)[tmp1] = '\0';
-
-		ret = 0;
-
-		break;
-	}
-
- error:
-	fclose(fp);
-	return (ret);
-}
-
-int proc_cpu_exists(unsigned int cpu) {
-	unsigned long tmp1, tmp2;
-	char *tmp3;
-	int ret;
-
-	ret = readout_proc_cpufreq(cpu, &tmp1, &tmp2, &tmp3);
-	if (ret)
-		return -ENODEV;
-
-	free(tmp3);
-	return 0;
-}
-
-struct cpufreq_policy * proc_get_policy(unsigned int cpu) {
-	struct cpufreq_policy tmp;
-	struct cpufreq_policy *ret;
-	int err;
-
-	err = readout_proc_cpufreq(cpu, &tmp.min, &tmp.max, &tmp.governor);
-	if (err)
-		return NULL;
-
-	ret = malloc(sizeof(struct cpufreq_policy));
-	if (!ret)
-		return NULL;
-
-	ret->min = tmp.min;
-	ret->max = tmp.max;
-	ret->governor = tmp.governor;
-
-	return (ret);
-}
-
-unsigned long proc_get_freq_kernel(unsigned int cpu) {
-	FILE *fp;
-	char value[MAX_LINE_LEN];
-	char file[MAX_LINE_LEN];
-	unsigned long value2;
-
-	snprintf(file, MAX_LINE_LEN, "/proc/sys/cpu/%u/speed", cpu);
-
-	fp = fopen(file,"r");
-	if (!fp)
-		return 0;
-
-	if (!fgets(value, MAX_LINE_LEN, fp)) {
-		fclose(fp);
-		return 0;
-	}
-
-	fclose(fp);
-
-	if (strlen(value) > (MAX_LINE_LEN - 10)) {
-		return 0;
-	}
-
-	if (sscanf(value, "%lu", &value2) != 1)
-		return 0;
-
-	return value2;
-}
-
-int proc_set_policy(unsigned int cpu, struct cpufreq_policy *policy) {
-	FILE *fp;
-	char value[MAX_LINE_LEN];
-	int ret = -ENODEV;
-
-	if ((!policy) || (!policy->governor) || (strlen(policy->governor) > 15))
-		return -EINVAL;
-
-	snprintf(value, MAX_LINE_LEN, "%d:%lu:%lu:%s", cpu, policy->min, policy->max, policy->governor);
-
-	value[MAX_LINE_LEN - 1]='\0';
-
-	fp = fopen("/proc/cpufreq","r+");
-	if (!fp)
-		return -ENODEV;
-	ret = fputs(value, fp);
-	fclose(fp);
-
-	if (ret < 0)
-		return (ret);
-
-	return 0;
-}
-
-int proc_set_frequency(unsigned int cpu, unsigned long target_frequency) {
-	struct cpufreq_policy *pol = proc_get_policy(cpu);
-	struct cpufreq_policy new_pol;
-	char userspace_gov[] = "userspace";
-	FILE *fp;
-	char value[MAX_LINE_LEN];
-	char file[MAX_LINE_LEN];
-	int ret = 0;
-
-	if (!pol)
-		return -ENODEV;
-
-	if (strncmp(pol->governor, userspace_gov, 9) != 0) {
-		cpufreq_put_policy(pol);
-		new_pol.min = pol->min;
-		new_pol.max = pol->max;
-		new_pol.governor = userspace_gov;
-		ret = proc_set_policy(cpu, &new_pol);
-		if (ret)
-			return (ret);
-	}
-
-
-	snprintf(file, MAX_LINE_LEN, "/proc/sys/cpu/%u/speed", cpu);
-	snprintf(value, MAX_LINE_LEN, "%lu", target_frequency);
-
-	fp = fopen(file,"r+");
-	if (!fp)
-		return -EINVAL;
-	ret = fputs(value, fp);
-	fclose(fp);
-
-	if (ret < 0)
-		return (ret);
-
-	return 0;
-}
diff --git a/lib/sysfs.h b/lib/sysfs.h
new file mode 100644
index 0000000..99619d5
--- /dev/null
+++ b/lib/sysfs.h
@@ -0,0 +1,18 @@
+extern unsigned int sysfs_cpu_exists(unsigned int cpu);
+extern unsigned long sysfs_get_freq_kernel(unsigned int cpu);
+extern unsigned long sysfs_get_freq_hardware(unsigned int cpu);
+extern unsigned long sysfs_get_transition_latency(unsigned int cpu);
+extern int sysfs_get_hardware_limits(unsigned int cpu, unsigned long *min, unsigned long *max);
+extern char * sysfs_get_driver(unsigned int cpu);
+extern struct cpufreq_policy * sysfs_get_policy(unsigned int cpu);
+extern struct cpufreq_available_governors * sysfs_get_available_governors(unsigned int cpu);
+extern struct cpufreq_available_frequencies * sysfs_get_available_frequencies(unsigned int cpu);
+extern struct cpufreq_affected_cpus * sysfs_get_affected_cpus(unsigned int cpu);
+extern struct cpufreq_affected_cpus * sysfs_get_related_cpus(unsigned int cpu);
+extern struct cpufreq_stats * sysfs_get_stats(unsigned int cpu, unsigned long long *total_time);
+extern unsigned long sysfs_get_transitions(unsigned int cpu);
+extern int sysfs_set_policy(unsigned int cpu, struct cpufreq_policy *policy);
+extern int sysfs_modify_policy_min(unsigned int cpu, unsigned long min_freq);
+extern int sysfs_modify_policy_max(unsigned int cpu, unsigned long max_freq);
+extern int sysfs_modify_policy_governor(unsigned int cpu, char *governor);
+extern int sysfs_set_frequency(unsigned int cpu, unsigned long target_frequency);
diff --git a/po/cs.po b/po/cs.po
index a4c14a7..4fdfffb 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -9,7 +9,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: cs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-07-17 11:29+0200\n"
+"POT-Creation-Date: 2010-09-01 01:20+0200\n"
 "PO-Revision-Date: 2008-06-11 16:26+0200\n"
 "Last-Translator: Karel Volný <kavol@seznam.cz>\n"
 "Language-Team: Czech <diskuze@lists.l10n.cz>\n"
@@ -24,64 +24,74 @@ msgstr ""
 msgid "Couldn't count the number of CPUs (%s: %s), assuming 1\n"
 msgstr "Nelze zjistit počet CPU (%s: %s), předpokládá se 1.\n"
 
-#: utils/info.c:67
+#: utils/info.c:68
 #, c-format
 msgid ""
 "          minimum CPU frequency  -  maximum CPU frequency  -  governor\n"
 msgstr ""
 "         minimální frekvence CPU - maximální frekvence CPU -  regulátor\n"
 
-#: utils/info.c:128
+#: utils/info.c:156
 #, c-format
 msgid "couldn't analyze CPU %d as it doesn't seem to be present\n"
 msgstr "nelze analyzovat CPU %d, vypadá to, že není přítomen\n"
 
-#: utils/info.c:132
+#: utils/info.c:160
 #, c-format
 msgid "analyzing CPU %d:\n"
 msgstr "analyzuji CPU %d:\n"
 
-#: utils/info.c:139
+#: utils/info.c:167
 #, c-format
 msgid "  no or unknown cpufreq driver is active on this CPU\n"
 msgstr "  pro tento CPU není aktivní žádný známý ovladač cpufreq\n"
 
-#: utils/info.c:141
+#: utils/info.c:169
 #, c-format
 msgid "  driver: %s\n"
 msgstr "  ovladač: %s\n"
 
-#: utils/info.c:147
-#, c-format
-msgid "  CPUs which need to switch frequency at the same time: "
+#: utils/info.c:175
+#, fuzzy, c-format
+msgid "  CPUs which run at the same hardware frequency: "
+msgstr "  CPU, které musí měnit frekvenci zároveň: "
+
+#: utils/info.c:186
+#, fuzzy, c-format
+msgid "  CPUs which need to have their frequency coordinated by software: "
 msgstr "  CPU, které musí měnit frekvenci zároveň: "
 
-#: utils/info.c:157
+#: utils/info.c:197
+#, c-format
+msgid "  maximum transition latency: "
+msgstr ""
+
+#: utils/info.c:203
 #, c-format
 msgid "  hardware limits: "
 msgstr "  hardwarové meze: "
 
-#: utils/info.c:166
+#: utils/info.c:212
 #, c-format
 msgid "  available frequency steps: "
 msgstr "  dostupné frekvence: "
 
-#: utils/info.c:179
+#: utils/info.c:225
 #, c-format
 msgid "  available cpufreq governors: "
 msgstr "  dostupné regulátory: "
 
-#: utils/info.c:190
+#: utils/info.c:236
 #, c-format
 msgid "  current policy: frequency should be within "
 msgstr "  současná taktika: frekvence by měla být mezi "
 
-#: utils/info.c:192
+#: utils/info.c:238
 #, c-format
 msgid " and "
 msgstr " a "
 
-#: utils/info.c:196
+#: utils/info.c:242
 #, c-format
 msgid ""
 "The governor \"%s\" may decide which speed to use\n"
@@ -90,51 +100,51 @@ msgstr ""
 "  Regulátor \"%s\" může rozhodnout jakou frekvenci použít\n"
 "                    v těchto mezích.\n"
 
-#: utils/info.c:203
+#: utils/info.c:249
 #, c-format
 msgid "  current CPU frequency is "
 msgstr "  současná frekvence CPU je "
 
-#: utils/info.c:206
+#: utils/info.c:252
 #, c-format
 msgid " (asserted by call to hardware)"
 msgstr "  (zjištěno hardwarovým voláním)"
 
-#: utils/info.c:214
+#: utils/info.c:260
 #, c-format
 msgid "  cpufreq stats: "
 msgstr "  statistika cpufreq: "
 
-#: utils/info.c:361 utils/set.c:30
+#: utils/info.c:440 utils/set.c:31
 #, c-format
 msgid "Report errors and bugs to %s, please.\n"
 msgstr ""
 "Chyby v programu prosím hlaste na %s (anglicky).\n"
 "Chyby v překladu prosím hlaste na kavol@seznam.cz (česky ;-)\n"
 
-#: utils/info.c:365
+#: utils/info.c:444
 #, c-format
 msgid "Usage: cpufreq-info [options]\n"
 msgstr "Užití: cpufreq-info [přepínače]\n"
 
-#: utils/info.c:366 utils/set.c:35
+#: utils/info.c:445 utils/set.c:37
 #, c-format
 msgid "Options:\n"
 msgstr "Přepínače:\n"
 
-#: utils/info.c:367
+#: utils/info.c:446
 #, c-format
 msgid ""
 "  -c CPU, --cpu CPU    CPU number which information shall be determined "
 "about\n"
 msgstr "  -c CPU, --cpu CPU    Číslo CPU, o kterém se mají zjistit informace\n"
 
-#: utils/info.c:368
+#: utils/info.c:447
 #, c-format
 msgid "  -e, --debug          Prints out debug information\n"
 msgstr "  -e, --debug          Vypíše ladicí informace\n"
 
-#: utils/info.c:369
+#: utils/info.c:448
 #, c-format
 msgid ""
 "  -f, --freq           Get frequency the CPU currently runs at, according\n"
@@ -143,7 +153,7 @@ msgstr ""
 "  -f, --freq           Zjistí aktuální frekvenci, na které CPU běží\n"
 "                       podle cpufreq *\n"
 
-#: utils/info.c:371
+#: utils/info.c:450
 #, c-format
 msgid ""
 "  -w, --hwfreq         Get frequency the CPU currently runs at, by reading\n"
@@ -152,7 +162,7 @@ msgstr ""
 "  -w, --hwfreq         Zjistí aktuální frekvenci, na které CPU běží\n"
 "                       z hardware (dostupné jen uživateli root) *\n"
 
-#: utils/info.c:373
+#: utils/info.c:452
 #, c-format
 msgid ""
 "  -l, --hwlimits       Determine the minimum and maximum CPU frequency "
@@ -161,36 +171,52 @@ msgstr ""
 "  -l, --hwlimits       Zjistí minimální a maximální dostupnou frekvenci CPU "
 "*\n"
 
-#: utils/info.c:374
+#: utils/info.c:453
 #, c-format
 msgid "  -d, --driver         Determines the used cpufreq kernel driver *\n"
 msgstr "  -d, --driver         Zjistí aktivní ovladač cpufreq *\n"
 
-#: utils/info.c:375
+#: utils/info.c:454
 #, c-format
 msgid "  -p, --policy         Gets the currently used cpufreq policy *\n"
 msgstr "  -p, --policy         Zjistí aktuální taktiku cpufreq *\n"
 
-#: utils/info.c:376
+#: utils/info.c:455
 #, c-format
 msgid "  -g, --governors      Determines available cpufreq governors *\n"
 msgstr "  -g, --governors      Zjistí dostupné regulátory cpufreq *\n"
 
-#: utils/info.c:377
-#, c-format
+#: utils/info.c:456
+#, fuzzy, c-format
 msgid ""
-"  -a, --affected-cpus  Determines which CPUs can only switch frequency at "
-"the\n"
-"                       same time *\n"
+"  -r, --related-cpus   Determines which CPUs run at the same hardware "
+"frequency *\n"
 msgstr ""
 "  -a, --affected-cpus  Zjistí, které CPU musí měnit frekvenci zároveň *\n"
 
-#: utils/info.c:379
+#: utils/info.c:457
+#, fuzzy, c-format
+msgid ""
+"  -a, --affected-cpus  Determines which CPUs need to have their frequency\n"
+"                       coordinated by software *\n"
+msgstr ""
+"  -a, --affected-cpus  Zjistí, které CPU musí měnit frekvenci zároveň *\n"
+
+#: utils/info.c:459
 #, c-format
 msgid "  -s, --stats          Shows cpufreq statistics if available\n"
 msgstr "  -s, --stats          Zobrazí statistiku cpufreq, je-li dostupná\n"
 
-#: utils/info.c:380
+#: utils/info.c:460
+#, fuzzy, c-format
+msgid ""
+"  -y, --latency        Determines the maximum latency on CPU frequency "
+"changes *\n"
+msgstr ""
+"  -l, --hwlimits       Zjistí minimální a maximální dostupnou frekvenci CPU "
+"*\n"
+
+#: utils/info.c:461
 #, c-format
 msgid ""
 "  -o, --proc           Prints out information like provided by the /proc/"
@@ -200,21 +226,21 @@ msgstr ""
 "  -o, --proc           Vypíše informace ve formátu, jaký používalo rozhraní\n"
 "                       /proc/cpufreq v kernelech řady 2.4 a časné 2.6\n"
 
-#: utils/info.c:382
-#, c-format
+#: utils/info.c:463
+#, fuzzy, c-format
 msgid ""
-"  -m, --human          human-readable output for the -f, -w and -s "
+"  -m, --human          human-readable output for the -f, -w, -s and -y "
 "parameters\n"
 msgstr ""
 "  -m, --human          Výstup parametrů -f, -w a -s v „lidmi čitelném“ "
 "formátu\n"
 
-#: utils/info.c:383 utils/set.c:42
+#: utils/info.c:464
 #, c-format
 msgid "  -h, --help           Prints out this screen\n"
 msgstr "  -h, --help           Vypíše tuto nápovědu\n"
 
-#: utils/info.c:386
+#: utils/info.c:467
 #, c-format
 msgid ""
 "If no argument or only the -c, --cpu parameter is given, debug output about\n"
@@ -224,7 +250,7 @@ msgstr ""
 "jsou\n"
 "vypsány ladicí informace, což může být užitečné například při hlášení chyb.\n"
 
-#: utils/info.c:388
+#: utils/info.c:469
 #, c-format
 msgid ""
 "For the arguments marked with *, omitting the -c or --cpu argument is\n"
@@ -233,14 +259,14 @@ msgstr ""
 "Není-li při použití přepínačů označených * zadán parametr -c nebo --cpu,\n"
 "předpokládá se jeho hodnota 0.\n"
 
-#: utils/info.c:478
+#: utils/info.c:563
 #, c-format
 msgid ""
 "The argument passed to this tool can't be combined with passing a --cpu "
 "argument\n"
 msgstr "Zadaný parametr nemůže být použit zároveň s přepínačem -c nebo --cpu\n"
 
-#: utils/info.c:491
+#: utils/info.c:576
 #, c-format
 msgid ""
 "You can't specify more than one --cpu parameter and/or\n"
@@ -249,17 +275,17 @@ msgstr ""
 "Nelze zadat více než jeden parametr -c nebo --cpu\n"
 "anebo více než jeden parametr určující výstup\n"
 
-#: utils/info.c:497 utils/set.c:79
+#: utils/info.c:582 utils/set.c:95
 #, c-format
 msgid "invalid or unknown argument\n"
 msgstr "neplatný nebo neznámý parametr\n"
 
-#: utils/set.c:34
+#: utils/set.c:36
 #, c-format
 msgid "Usage: cpufreq-set [options]\n"
 msgstr "Užití: cpufreq-set [přepínače]\n"
 
-#: utils/set.c:36
+#: utils/set.c:38
 #, c-format
 msgid ""
 "  -c CPU, --cpu CPU        number of CPU where cpufreq settings shall be "
@@ -268,7 +294,7 @@ msgstr ""
 "  -c CPU, --cpu CPU        Číslo CPU pro který se má provést nastavení "
 "cpufreq\n"
 
-#: utils/set.c:37
+#: utils/set.c:39
 #, c-format
 msgid ""
 "  -d FREQ, --min FREQ      new minimum CPU frequency the governor may "
@@ -277,7 +303,7 @@ msgstr ""
 "  -d FREQ, --min FREQ      Nová nejnižší frekvence, kterou může regulátor "
 "vybrat\n"
 
-#: utils/set.c:38
+#: utils/set.c:40
 #, c-format
 msgid ""
 "  -u FREQ, --max FREQ      new maximum CPU frequency the governor may "
@@ -286,12 +312,12 @@ msgstr ""
 "  -u FREQ, --max FREQ      Nová nejvyšší frekvence, kterou může regulátor "
 "zvolit\n"
 
-#: utils/set.c:39
+#: utils/set.c:41
 #, c-format
 msgid "  -g GOV, --governor GOV   new cpufreq governor\n"
 msgstr "  -g GOV, --governors GOV  Nový regulátor cpufreq\n"
 
-#: utils/set.c:40
+#: utils/set.c:42
 #, c-format
 msgid ""
 "  -f FREQ, --freq FREQ     specific frequency to be set. Requires userspace\n"
@@ -303,6 +329,16 @@ msgstr ""
 
 #: utils/set.c:44
 #, c-format
+msgid "  -r, --related            Switches all hardware-related CPUs\n"
+msgstr ""
+
+#: utils/set.c:45
+#, fuzzy, c-format
+msgid "  -h, --help               Prints out this screen\n"
+msgstr "  -h, --help           Vypíše tuto nápovědu\n"
+
+#: utils/set.c:47
+#, c-format
 msgid ""
 "Notes:\n"
 "1. Omitting the -c or --cpu argument is equivalent to setting it to zero\n"
@@ -322,30 +358,7 @@ msgstr ""
 "   připojením názvu jednotky bez mezery mezi číslem a jednotkou\n"
 "   (FREQ v kHz =^ Hz * 0,001 = ^ MHz * 1000 =^ GHz * 1000000)\n"
 
-#: utils/set.c:251
-#, c-format
-msgid ""
-"the -f/--freq parameter cannot be combined with -d/--min, -u/--max or\n"
-"-g/--governor parameters\n"
-msgstr ""
-"přepínač -f/--freq nemůže být použit zároveň\n"
-"s přepínačem -d/--min, -u/--max nebo -g/--governor\n"
-
-#: utils/set.c:262
-#, c-format
-msgid ""
-"At least one parameter out of -f/--freq, -d/--min, -u/--max, and\n"
-"-g/--governor must be passed\n"
-msgstr ""
-"Musí být zadán alespoň jeden přepínač\n"
-"-f/--freq, -d/--min, -u/--max nebo -g/--governor\n"
-
-#: utils/set.c:282
-#, c-format
-msgid "wrong, unknown or unhandled CPU?\n"
-msgstr "neznámý nebo nepodporovaný CPU?\n"
-
-#: utils/set.c:306
+#: utils/set.c:69
 #, c-format
 msgid ""
 "Error setting new values. Common errors:\n"
@@ -365,3 +378,26 @@ msgstr ""
 "- Snažíte se nastavit určitou frekvenci, ale není dostupný\n"
 "  regulátor ‚userspace‘, například protože není nahrán v jádře,\n"
 "  nebo nelze na tomto hardware nastavit určitou frekvenci?\n"
+
+#: utils/set.c:183
+#, c-format
+msgid "wrong, unknown or unhandled CPU?\n"
+msgstr "neznámý nebo nepodporovaný CPU?\n"
+
+#: utils/set.c:336
+#, c-format
+msgid ""
+"the -f/--freq parameter cannot be combined with -d/--min, -u/--max or\n"
+"-g/--governor parameters\n"
+msgstr ""
+"přepínač -f/--freq nemůže být použit zároveň\n"
+"s přepínačem -d/--min, -u/--max nebo -g/--governor\n"
+
+#: utils/set.c:342
+#, c-format
+msgid ""
+"At least one parameter out of -f/--freq, -d/--min, -u/--max, and\n"
+"-g/--governor must be passed\n"
+msgstr ""
+"Musí být zadán alespoň jeden přepínač\n"
+"-f/--freq, -d/--min, -u/--max nebo -g/--governor\n"
diff --git a/po/de.po b/po/de.po
index 4c3a2bb..a5970ae 100644
--- a/po/de.po
+++ b/po/de.po
@@ -7,7 +7,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: cpufrequtils 006\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-08-09 11:53+0200\n"
+"POT-Creation-Date: 2010-09-01 01:20+0200\n"
 "PO-Revision-Date: 2009-08-08 17:18+0100\n"
 "Last-Translator:  <linux@dominikbrodowski.net>\n"
 "Language-Team: NONE\n"
diff --git a/po/fr.po b/po/fr.po
index fffdb42..4ebb40b 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: cpufrequtils 0.1-pre2\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2008-07-17 11:29+0200\n"
+"POT-Creation-Date: 2010-09-01 01:20+0200\n"
 "PO-Revision-Date: 2004-11-17 15:53+1000\n"
 "Last-Translator: Bruno Ducrot <ducrot@poupinou.org>\n"
 "Language-Team: NONE\n"
@@ -21,64 +21,74 @@ msgstr ""
 msgid "Couldn't count the number of CPUs (%s: %s), assuming 1\n"
 msgstr "Dtermination du nombre de CPUs (%s : %s) impossible.  Assume 1\n"
 
-#: utils/info.c:67
+#: utils/info.c:68
 #, c-format
 msgid ""
 "          minimum CPU frequency  -  maximum CPU frequency  -  governor\n"
 msgstr ""
 "         Frquence CPU minimale - Frquence CPU maximale  - rgulateur\n"
 
-#: utils/info.c:128
+#: utils/info.c:156
 #, c-format
 msgid "couldn't analyze CPU %d as it doesn't seem to be present\n"
 msgstr "analyse du CPU %d impossible puisqu'il ne semble pas tre prsent\n"
 
-#: utils/info.c:132
+#: utils/info.c:160
 #, c-format
 msgid "analyzing CPU %d:\n"
 msgstr "analyse du CPU %d :\n"
 
-#: utils/info.c:139
+#: utils/info.c:167
 #, c-format
 msgid "  no or unknown cpufreq driver is active on this CPU\n"
 msgstr "  pas de pilotes cpufreq reconnu pour ce CPU\n"
 
-#: utils/info.c:141
+#: utils/info.c:169
 #, c-format
 msgid "  driver: %s\n"
 msgstr "  pilote : %s\n"
 
-#: utils/info.c:147
-#, c-format
-msgid "  CPUs which need to switch frequency at the same time: "
+#: utils/info.c:175
+#, fuzzy, c-format
+msgid "  CPUs which run at the same hardware frequency: "
+msgstr "  CPUs qui doivent changer de frquences en mme temps : "
+
+#: utils/info.c:186
+#, fuzzy, c-format
+msgid "  CPUs which need to have their frequency coordinated by software: "
 msgstr "  CPUs qui doivent changer de frquences en mme temps : "
 
-#: utils/info.c:157
+#: utils/info.c:197
+#, c-format
+msgid "  maximum transition latency: "
+msgstr ""
+
+#: utils/info.c:203
 #, c-format
 msgid "  hardware limits: "
 msgstr "  limitation matrielle : "
 
-#: utils/info.c:166
+#: utils/info.c:212
 #, c-format
 msgid "  available frequency steps: "
 msgstr "  plage de frquence : "
 
-#: utils/info.c:179
+#: utils/info.c:225
 #, c-format
 msgid "  available cpufreq governors: "
 msgstr "  rgulateurs disponibles : "
 
-#: utils/info.c:190
+#: utils/info.c:236
 #, c-format
 msgid "  current policy: frequency should be within "
 msgstr "  tactique actuelle : la frquence doit tre comprise entre "
 
-#: utils/info.c:192
+#: utils/info.c:238
 #, c-format
 msgid " and "
 msgstr " et "
 
-#: utils/info.c:196
+#: utils/info.c:242
 #, c-format
 msgid ""
 "The governor \"%s\" may decide which speed to use\n"
@@ -87,37 +97,37 @@ msgstr ""
 "Le rgulateur \"%s\" est libre de choisir la vitesse\n"
 "                  dans cette plage de frquences.\n"
 
-#: utils/info.c:203
+#: utils/info.c:249
 #, c-format
 msgid "  current CPU frequency is "
 msgstr "  la frquence actuelle de ce CPU est "
 
-#: utils/info.c:206
+#: utils/info.c:252
 #, c-format
 msgid " (asserted by call to hardware)"
 msgstr " (vrifi par un appel direct du matriel)"
 
-#: utils/info.c:214
+#: utils/info.c:260
 #, c-format
 msgid "  cpufreq stats: "
 msgstr "  des statistique concernant cpufreq:"
 
-#: utils/info.c:361 utils/set.c:30
+#: utils/info.c:440 utils/set.c:31
 #, c-format
 msgid "Report errors and bugs to %s, please.\n"
 msgstr "Veuillez rapportez les erreurs et les bogues  %s, s'il vous plait.\n"
 
-#: utils/info.c:365
+#: utils/info.c:444
 #, c-format
 msgid "Usage: cpufreq-info [options]\n"
 msgstr "Usage : cpufreq-info [options]\n"
 
-#: utils/info.c:366 utils/set.c:35
+#: utils/info.c:445 utils/set.c:37
 #, c-format
 msgid "Options:\n"
 msgstr "Options :\n"
 
-#: utils/info.c:367
+#: utils/info.c:446
 #, c-format
 msgid ""
 "  -c CPU, --cpu CPU    CPU number which information shall be determined "
@@ -126,12 +136,12 @@ msgstr ""
 "  -c CPU, --cpu CPU    Numro du CPU pour lequel l'information sera "
 "affiche\n"
 
-#: utils/info.c:368
+#: utils/info.c:447
 #, c-format
 msgid "  -e, --debug          Prints out debug information\n"
 msgstr "  -e, --debug          Afficher les informations de dboguage\n"
 
-#: utils/info.c:369
+#: utils/info.c:448
 #, c-format
 msgid ""
 "  -f, --freq           Get frequency the CPU currently runs at, according\n"
@@ -140,7 +150,7 @@ msgstr ""
 "  -f, --freq           Obtenir la frquence actuelle du CPU selon le point\n"
 "                       de vue du coeur du systme de cpufreq *\n"
 
-#: utils/info.c:371
+#: utils/info.c:450
 #, c-format
 msgid ""
 "  -w, --hwfreq         Get frequency the CPU currently runs at, by reading\n"
@@ -149,7 +159,7 @@ msgstr ""
 "  -w, --hwfreq         Obtenir la frquence actuelle du CPU directement par\n"
 "                       le matriel (doit tre root) *\n"
 
-#: utils/info.c:373
+#: utils/info.c:452
 #, c-format
 msgid ""
 "  -l, --hwlimits       Determine the minimum and maximum CPU frequency "
@@ -158,40 +168,57 @@ msgstr ""
 "  -l, --hwlimits       Affiche les frquences minimales et maximales du CPU "
 "*\n"
 
-#: utils/info.c:374
+#: utils/info.c:453
 #, c-format
 msgid "  -d, --driver         Determines the used cpufreq kernel driver *\n"
 msgstr "  -d, --driver         Affiche le pilote cpufreq utilis *\n"
 
-#: utils/info.c:375
+#: utils/info.c:454
 #, c-format
 msgid "  -p, --policy         Gets the currently used cpufreq policy *\n"
 msgstr "  -p, --policy         Affiche la tactique actuelle de cpufreq *\n"
 
-#: utils/info.c:376
+#: utils/info.c:455
 #, c-format
 msgid "  -g, --governors      Determines available cpufreq governors *\n"
 msgstr ""
 "  -g, --governors      Affiche les rgulateurs disponibles de cpufreq *\n"
 
-#: utils/info.c:377
-#, c-format
+#: utils/info.c:456
+#, fuzzy, c-format
 msgid ""
-"  -a, --affected-cpus  Determines which CPUs can only switch frequency at "
-"the\n"
-"                       same time *\n"
+"  -r, --related-cpus   Determines which CPUs run at the same hardware "
+"frequency *\n"
 msgstr ""
 "  -a, --affected-cpus   Affiche quels sont les CPUs qui doivent changer de\n"
 "                        frquences en mme temps *\n"
 
-#: utils/info.c:379
+#: utils/info.c:457
+#, fuzzy, c-format
+msgid ""
+"  -a, --affected-cpus  Determines which CPUs need to have their frequency\n"
+"                       coordinated by software *\n"
+msgstr ""
+"  -a, --affected-cpus   Affiche quels sont les CPUs qui doivent changer de\n"
+"                        frquences en mme temps *\n"
+
+#: utils/info.c:459
 #, c-format
 msgid "  -s, --stats          Shows cpufreq statistics if available\n"
 msgstr ""
 "  -s, --stats          Indique des statistiques concernant cpufreq, si\n"
 "                       disponibles\n"
 
-#: utils/info.c:380
+#: utils/info.c:460
+#, fuzzy, c-format
+msgid ""
+"  -y, --latency        Determines the maximum latency on CPU frequency "
+"changes *\n"
+msgstr ""
+"  -l, --hwlimits       Affiche les frquences minimales et maximales du CPU "
+"*\n"
+
+#: utils/info.c:461
 #, c-format
 msgid ""
 "  -o, --proc           Prints out information like provided by the /proc/"
@@ -203,21 +230,21 @@ msgstr ""
 "versions\n"
 "                       2.4 et les anciennes versions 2.6 du noyau\n"
 
-#: utils/info.c:382
-#, c-format
+#: utils/info.c:463
+#, fuzzy, c-format
 msgid ""
-"  -m, --human          human-readable output for the -f, -w and -s "
+"  -m, --human          human-readable output for the -f, -w, -s and -y "
 "parameters\n"
 msgstr ""
 "  -m, --human           affiche dans un format lisible pour un humain\n"
 "                        pour les options -f, -w et -s (MHz, GHz)\n"
 
-#: utils/info.c:383 utils/set.c:42
+#: utils/info.c:464
 #, c-format
 msgid "  -h, --help           Prints out this screen\n"
 msgstr "  -h, --help           affiche l'aide-mmoire\n"
 
-#: utils/info.c:386
+#: utils/info.c:467
 #, c-format
 msgid ""
 "If no argument or only the -c, --cpu parameter is given, debug output about\n"
@@ -227,21 +254,21 @@ msgstr ""
 "argument, ou bien si seulement l'argument -c (--cpu) est donn, afin de\n"
 "faciliter les rapports de bogues par exemple\n"
 
-#: utils/info.c:388
+#: utils/info.c:469
 #, c-format
 msgid ""
 "For the arguments marked with *, omitting the -c or --cpu argument is\n"
 "equivalent to setting it to zero\n"
 msgstr "Les arguments avec un * utiliseront le CPU 0 si -c (--cpu) est omis\n"
 
-#: utils/info.c:478
+#: utils/info.c:563
 #, c-format
 msgid ""
 "The argument passed to this tool can't be combined with passing a --cpu "
 "argument\n"
 msgstr "Cette option est incompatible avec --cpu\n"
 
-#: utils/info.c:491
+#: utils/info.c:576
 #, c-format
 msgid ""
 "You can't specify more than one --cpu parameter and/or\n"
@@ -250,17 +277,17 @@ msgstr ""
 "On ne peut indiquer plus d'un paramtre --cpu, tout comme l'on ne peut\n"
 "spcifier plus d'un argument de formatage\n"
 
-#: utils/info.c:497 utils/set.c:79
+#: utils/info.c:582 utils/set.c:95
 #, c-format
 msgid "invalid or unknown argument\n"
 msgstr "option invalide\n"
 
-#: utils/set.c:34
+#: utils/set.c:36
 #, c-format
 msgid "Usage: cpufreq-set [options]\n"
 msgstr "Usage : cpufreq-set [options]\n"
 
-#: utils/set.c:36
+#: utils/set.c:38
 #, c-format
 msgid ""
 "  -c CPU, --cpu CPU        number of CPU where cpufreq settings shall be "
@@ -269,7 +296,7 @@ msgstr ""
 "  -c CPU, --cpu CPU        numro du CPU  prendre en compte pour les\n"
 "                           changements\n"
 
-#: utils/set.c:37
+#: utils/set.c:39
 #, c-format
 msgid ""
 "  -d FREQ, --min FREQ      new minimum CPU frequency the governor may "
@@ -278,7 +305,7 @@ msgstr ""
 "  -d FREQ, --min FREQ       nouvelle frquence minimale du CPU  utiliser\n"
 "                            par le rgulateur\n"
 
-#: utils/set.c:38
+#: utils/set.c:40
 #, c-format
 msgid ""
 "  -u FREQ, --max FREQ      new maximum CPU frequency the governor may "
@@ -287,12 +314,12 @@ msgstr ""
 "  -u FREQ, --max FREQ       nouvelle frquence maximale du CPU  utiliser\n"
 "                            par le rgulateur\n"
 
-#: utils/set.c:39
+#: utils/set.c:41
 #, c-format
 msgid "  -g GOV, --governor GOV   new cpufreq governor\n"
 msgstr "  -g GOV, --governor GOV   active le rgulateur GOV\n"
 
-#: utils/set.c:40
+#: utils/set.c:42
 #, c-format
 msgid ""
 "  -f FREQ, --freq FREQ     specific frequency to be set. Requires userspace\n"
@@ -304,6 +331,16 @@ msgstr ""
 
 #: utils/set.c:44
 #, c-format
+msgid "  -r, --related            Switches all hardware-related CPUs\n"
+msgstr ""
+
+#: utils/set.c:45
+#, fuzzy, c-format
+msgid "  -h, --help               Prints out this screen\n"
+msgstr "  -h, --help           affiche l'aide-mmoire\n"
+
+#: utils/set.c:47
+#, c-format
 msgid ""
 "Notes:\n"
 "1. Omitting the -c or --cpu argument is equivalent to setting it to zero\n"
@@ -322,30 +359,7 @@ msgstr ""
 "   les valeurs par hz, kHz (par dfaut), MHz, GHz ou THz\n"
 "   (kHz =^ Hz * 0.001 =^ MHz * 1000 =^ GHz * 1000000).\n"
 
-#: utils/set.c:251
-#, c-format
-msgid ""
-"the -f/--freq parameter cannot be combined with -d/--min, -u/--max or\n"
-"-g/--governor parameters\n"
-msgstr ""
-"l'option -f/--freq est incompatible avec les options -d/--min, -u/--max et\n"
-"-g/--governor\n"
-
-#: utils/set.c:262
-#, c-format
-msgid ""
-"At least one parameter out of -f/--freq, -d/--min, -u/--max, and\n"
-"-g/--governor must be passed\n"
-msgstr ""
-"L'un de ces paramtres est obligatoire : -f/--freq, -d/--min, -u/--max et\n"
-"-g/--governor\n"
-
-#: utils/set.c:282
-#, c-format
-msgid "wrong, unknown or unhandled CPU?\n"
-msgstr "CPU inconnu ou non support ?\n"
-
-#: utils/set.c:306
+#: utils/set.c:69
 #, c-format
 msgid ""
 "Error setting new values. Common errors:\n"
@@ -368,3 +382,26 @@ msgstr ""
 "- vous voulez utiliser l'option -f/--freq, mais le rgulateur  userspace \n"
 "  n'est pas disponible, par exemple parce que le matriel ne le supporte\n"
 "  pas, ou bien n'est tout simplement pas charg.\n"
+
+#: utils/set.c:183
+#, c-format
+msgid "wrong, unknown or unhandled CPU?\n"
+msgstr "CPU inconnu ou non support ?\n"
+
+#: utils/set.c:336
+#, c-format
+msgid ""
+"the -f/--freq parameter cannot be combined with -d/--min, -u/--max or\n"
+"-g/--governor parameters\n"
+msgstr ""
+"l'option -f/--freq est incompatible avec les options -d/--min, -u/--max et\n"
+"-g/--governor\n"
+
+#: utils/set.c:342
+#, c-format
+msgid ""
+"At least one parameter out of -f/--freq, -d/--min, -u/--max, and\n"
+"-g/--governor must be passed\n"
+msgstr ""
+"L'un de ces paramtres est obligatoire : -f/--freq, -d/--min, -u/--max et\n"
+"-g/--governor\n"
diff --git a/po/it.po b/po/it.po
index 36f09ed..4e9aa83 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: cpufrequtils 0.3\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-08-09 11:53+0200\n"
+"POT-Creation-Date: 2010-09-01 01:20+0200\n"
 "PO-Revision-Date: 2009-08-15 12:00+0900\n"
 "Last-Translator: Mattia Dongili <malattia@gmail.com>\n"
 "Language-Team: NONE\n"
diff --git a/po/pt.po b/po/pt.po
index 75cca0d..2baf1d5 100644
--- a/po/pt.po
+++ b/po/pt.po
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: cpufrequtils 004\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-08-09 11:53+0200\n"
+"POT-Creation-Date: 2010-09-01 01:20+0200\n"
 "PO-Revision-Date: 2008-06-14 22:16-0400\n"
 "Last-Translator: Claudio Eduardo <claudioeddy@gmail.com>\n"
 "MIME-Version: 1.0\n"
-- 
1.7.10