Re: [PATCH] hwmon: applesmc: avoid overlong udelay()

2020-11-06 Thread Nathan Chancellor
On Fri, Nov 06, 2020 at 06:17:10PM -0500, Matt Turner wrote: > On my late 2013 Macbook Pro, I have a couple of scripts that set the > fans to auto or full-speed: > > fan-hi: > #!/bin/sh > sudo sh -c 'echo 1 > /sys/devices/platform/applesmc.768/fan1_manual > echo 1 >

Re: [PATCH] hwmon: applesmc: avoid overlong udelay()

2020-11-06 Thread Matt Turner
On my late 2013 Macbook Pro, I have a couple of scripts that set the fans to auto or full-speed: fan-hi: #!/bin/sh sudo sh -c 'echo 1 > /sys/devices/platform/applesmc.768/fan1_manual echo 1 > /sys/devices/platform/applesmc.768/fan2_manual cat

Re: [PATCH] hwmon: applesmc: avoid overlong udelay()

2020-05-27 Thread Guenter Roeck
On Wed, May 27, 2020 at 03:51:57PM +0200, Arnd Bergmann wrote: > Building this driver with "clang -O3" produces a link error > after the compiler partially unrolls the loop and 256ms > becomes a compile-time constant that triggers the check > in udelay(): > > ld.lld: error: undefined symbol:

[PATCH] hwmon: applesmc: avoid overlong udelay()

2020-05-27 Thread Arnd Bergmann
Building this driver with "clang -O3" produces a link error after the compiler partially unrolls the loop and 256ms becomes a compile-time constant that triggers the check in udelay(): ld.lld: error: undefined symbol: __bad_udelay >>> referenced by applesmc.c >>>