wok-next view linux-libre/stuff/linux-timeconst.pl.u @ rev 20427
Up cookutils (1024), tazpkg (957)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jan 24 12:19:58 2018 +0200 (2018-01-24) |
parents | 6e60cb130afd |
children |
line source
1 --- linux-2.6.37-gnu/kernel/timeconst.pl
2 +++ linux-2.6.37-gnu/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;