summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/bgpd.c
diff options
context:
space:
mode:
authorgkoehler <gkoehler@cvs.openbsd.org>2020-12-30 06:06:32 +0000
committergkoehler <gkoehler@cvs.openbsd.org>2020-12-30 06:06:32 +0000
commit39f39fdbfb82696a9b8a04f41c139f91c64b1b50 (patch)
tree4e7523d1b680cadb3d64a16be369d0e41ec957bd /usr.sbin/bgpd/bgpd.c
parenta640deed8a9d460a51db6c891d3c4f153fc30ea9 (diff)
Enter power-saving mode on POWER9 (ISA v3)
When opal(4) attaches, look in the device tree for a psscr value. In cpu_idle_cycle(), use this psscr value and the stop instruction to wait for the next interrupt. In mp kernels, cpu_unidle() now sends an interrupt. In "sysctl hw.sensors", the power and temperature sensors from opalsens(4) may show lower values. The cpu may exit stop at the system reset vector after losing user registers. If so, restore some registers. For now, ignore deeper stop states that would lose hypervisor registers. Our mp kernel uses only the first hardware thread of each core. Take the extra threads from the firmware and stop them forever; this may switch the core from SMT4 to single-thread mode and increase performance. partly by kettenis@, ok kettenis@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
0 files changed, 0 insertions, 0 deletions