SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So
SPDX: Convert all of our single license tags to Linux Kernel styleWhen U-Boot started using SPDX tags we were among the early adopters andthere weren't a lot of other examples to borrow from. So we picked thearea of the file that usually had a full license text and replaced itwith an appropriate SPDX-License-Identifier: entry. Since then, theLinux Kernel has adopted SPDX tags and they place it as the very firstline in a file (except where shebangs are used, then it's second line)and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibilityand in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declaredlicense in the tag as both the before and after are identical in tagcontents. There's also a few places where I found we did not have a tagand have introduced one.Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
cmd_dhry.c: Use lldiv for vax_mips calculation as wellSince dhry_per_sec is a u64 we must also use lldiv here when workingwith it. Otherwise:../lib/dhry/cmd_dhry.c:(.text.do_dhry+0xd8): undefine
cmd_dhry.c: Use lldiv for vax_mips calculation as wellSince dhry_per_sec is a u64 we must also use lldiv here when workingwith it. Otherwise:../lib/dhry/cmd_dhry.c:(.text.do_dhry+0xd8): undefined reference to `__udivdi3'On some platforms.Signed-off-by: Tom Rini <trini@konsulko.com>
dhry: Correct dhrystone calculation for fast machinesAt present samus reports about 5600 DMIPS. With the default iteration countthis is OK, but if 10 million runs are performed it overflows. Fix i
dhry: Correct dhrystone calculation for fast machinesAt present samus reports about 5600 DMIPS. With the default iteration countthis is OK, but if 10 million runs are performed it overflows. Fix it.Signed-off-by: Simon Glass <sjg@chromium.org>
Add a dhrystone benchmark commandDrystone provides a convenient sanity check that the CPU is running at fullspeed. Add this as a command which can be enabled as needed.Note: I investigated using
Add a dhrystone benchmark commandDrystone provides a convenient sanity check that the CPU is running at fullspeed. Add this as a command which can be enabled as needed.Note: I investigated using Coremark for this but there was a licenseagreement and I could not work out if it was GPL-compatible.Signed-off-by: Simon Glass <sjg@chromium.org>