created | 2023-07-16T08:30:15Z |
---|---|
begin | 2023-07-13T00:00:00Z |
end | 2023-07-14T00:00:00Z |
path | src/sys |
commits | 3 |
date | 2023-07-13T07:31:12Z | |||
---|---|---|---|---|
author | jsg | |||
files | src/sys/dev/ic/aac.c | log | diff | annotate |
src/sys/dev/ic/aacvar.h | log | diff | annotate | |
src/sys/dev/pci/aac_pci.c | log | diff | annotate | |
message |
Change function definitions using the identifier-list form used in the 1st edition of Kernighan and Ritchie's The C Programming Language, to that of the parameter-type-list form described in the ANSI X3.159-1989 standard. In ISO/IEC 9899:2023 drafts, there is only one form of function definition. "N2432 Remove support for function definitions with identifier lists". |
date | 2023-07-13T08:33:36Z | |||
---|---|---|---|---|
author | kettenis | |||
files | src/sys/arch/arm64/arm64/cpu.c | log | diff | annotate |
src/sys/arch/arm64/arm64/cpufunc_asm.S | log | diff | annotate | |
src/sys/arch/arm64/arm64/machdep.c | log | diff | annotate | |
src/sys/arch/arm64/dev/aplcpu.c | log | diff | annotate | |
src/sys/arch/arm64/include/cpu.h | log | diff | annotate | |
message |
Use the deep idle state available on Apple M1/M2 cores in the idle loop and for suspend. This state makes the CPU lose some of its register state so we need to save these registers before putting the core to sleep and restore them when we wake up. This deep idle state has a higher wakeup latency than the normal WFI idle state. Use similar logic as acpucpu(4) to decide which idle state to pick. If some cores of a cluster are in this deep idle state, turbo states become available to the cores that remain active. So stop skipping these states. This improves single-core performance a little bit. The main win is in power savings when running in a state with a high clock frequency. My M2 Pro mini goes from 14W to 6.5W when idle at the maximum clock frequency. But event at the lowest clock frequency there are small but significant power savings. ok deraadt@, tobhe@ |
date | 2023-07-13T20:33:30Z | |||
---|---|---|---|---|
author | millert | |||
files | src/sys/lib/libkern/bcmp.c | log | diff | annotate |
message |
bcmp(3) tries to return length, which is a size_t, as an int. Instead, just return 1 if there is a difference, else 0. Fixed by ray@ in 2008 but the libkern version was not synced. OK deraadt@ |