wok-next view linux-libre/stuff/linux-timeconst.pl.u @ rev 19792
linux-libre: patch timeconst.pl
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jun 23 10:28:06 2017 +0200 (2017-06-23) |
parents | |
children | e2e4dedc6cb9 |
line source
1 --- kernel/timeconst.pl
2 +++ kernel/timeconst.pl
3 @@ -369,10 +369,8 @@
4 die "Usage: $0 HZ\n";
5 }
7 - @val = @{$canned_values{$hz}};
8 - if (!defined(@val)) {
9 - @val = compute_values($hz);
10 - }
11 + $cv = $canned_values{$hz};
12 + @val = defined($cv) ? @$cv : compute_values($hz);
13 output($hz, @val);
14 }
15 exit 0;