kernel: Replace timeconst.pl with a bc script
authorH. Peter Anvin <hpa@zytor.com>
Thu, 14 Feb 2013 23:13:55 +0000 (15:13 -0800)
committerThadeu Lima de Souza Cascardo <cascardo@cascardo.eti.br>
Thu, 23 Jun 2016 03:50:33 +0000 (03:50 +0000)
commitcb6427aa5f631a6971f58e926728a1b069cf720c
tree000cb05dd321c256011fa9f9b7660977e6cb1dcc
parent5f2ffd8b09173a93fae8052922f7c09cac2302f1
kernel: Replace timeconst.pl with a bc script

bc is the standard tool for multi-precision arithmetic.  We switched
to Perl because akpm reported a hard-to-reproduce build hang, which
was very odd because affected and unaffected machines were all running
the same version of GNU bc.

Unfortunately switching to Perl required a really ugly "canning"
mechanism to support Perl < 5.8 installations lacking the Math::BigInt
module.

It was recently pointed out to me that some very old versions of GNU
make had problems with pipes in subshells, which was indeed the
construct used in the Makefile rules in that version of the patch;
Perl didn't need it so switching to Perl fixed the problem for
unrelated reasons.  With the problem (hopefully) root-caused, we can
switch back to bc and do the arbitrary-precision arithmetic naturally.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
kernel/Makefile
kernel/timeconst.bc [new file with mode: 0644]
kernel/timeconst.pl [deleted file]