From a37b4ca73f666bbc97e9efe6d5579bd654496665 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 7 Feb 2013 17:14:08 -0800 Subject: [PATCH] --- yaml --- r: 350222 b: refs/heads/master c: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/timeconst.pl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 6fe894622673..0f672a342b51 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ffee0de411fd4f74f3b788892eeb075abbf26c52 +refs/heads/master: 63a3f603413ffe82ad775f2d62a5afff87fd94a0 diff --git a/trunk/kernel/timeconst.pl b/trunk/kernel/timeconst.pl index eb51d76e058a..3f42652a6a37 100644 --- a/trunk/kernel/timeconst.pl +++ b/trunk/kernel/timeconst.pl @@ -369,10 +369,8 @@ (@) die "Usage: $0 HZ\n"; } - @val = @{$canned_values{$hz}}; - if (!defined(@val)) { - @val = compute_values($hz); - } + $cv = $canned_values{$hz}; + @val = defined($cv) ? @$cv : compute_values($hz); output($hz, @val); } exit 0;