64035ac463
Prepare for better device categorization by moving everything to testing subdir first. [skip-ci]: chicken-egg problem: passing pmaports CI depends on pmbootstrap MR depends on this MR Related: postmarketos#16
17 lines
410 B
Diff
17 lines
410 B
Diff
diff --git a/kernel/timeconst.pl b/kernel/timeconst.pl
|
|
index eb51d76e058a4..3f42652a6a374 100644
|
|
--- a/kernel/timeconst.pl
|
|
+++ b/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;
|