pmaports/device/linux-samsung-i8200/timeconst_fix.patch

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;