zephyr/include
Andy Ross 2724fd11cb kernel: SMP-aware scheduler
The scheduler needs a few tweaks to work in SMP mode:

1. The "cache" field just doesn't work.  With more than one CPU,
   caching the highest priority thread isn't useful as you may need N
   of them at any given time before another thread is returned to the
   scheduler.  You could recalculate it at every change, but that
   provides no performance benefit.  Remove.

2. The "bitmask" designed to prevent the need to individually check
   priorities is likewise dropped.  This could work, but in fact on
   our only current SMP system and with current K_NUM_PRIOPRITIES
   values it provides no real benefit.

3. The individual threads now have a "current cpu" and "active" flag
   so that the choice of the next thread to run can correctly skip
   threads that are active on other CPUs.

The upshot is that a decent amount of code gets #if'd out, and the new
SMP implementations for _get_highest_ready_prio() and
_get_next_ready_thread() are simpler and smaller, at the expense of
having to drop older optimizations.

Note that scheduler synchronization is unchanged: all scheduler APIs
used to require that an irq_lock() be held, which means that they now
require the global spinlock via the same API.  This should be a very
early candidate for lock granularity attention!

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
2018-02-16 10:44:29 -05:00
..
arch xtensa: Remove arch-specific (and empty) offsets.h 2018-02-16 10:44:29 -05:00
bluetooth
crypto
debug
dfu
display
drivers
dt-bindings
fs
linker
logging
misc native: __ASSERT() to immediately terminate 2018-02-14 22:23:52 -05:00
net
posix
random
shell
toolchain
usb
zephyr
adc.h
aio_comparator.h
atomic.h
cache.h
clock_control.h
console.h
counter.h
crc8.h
crc16.h
device.h
disk_access.h
dma.h
entropy.h
eth.h
fcb.h
flash_map.h subsys: storage: flash_map: Fix warning 2018-02-14 14:36:52 -05:00
flash.h
fs.h
gpio.h
i2c.h
i2s.h
init.h
ipm.h
irq_offload.h
irq.h kernel: Make irq_{un}lock() APIs into a global spinlock in SMP mode 2018-02-16 10:44:29 -05:00
json.h
kernel_version.h
kernel.h kernel: SMP-aware scheduler 2018-02-16 10:44:29 -05:00
led_strip.h
pinmux.h
power.h
pwm.h
ring_buffer.h
rtc.h
sensor.h sensors: sensor_value: Elaborate docs 2018-02-15 12:55:50 -05:00
shared_irq.h
spi_legacy.h
spi.h
spinlock.h kernel: Simple spinlock API 2018-02-16 10:44:29 -05:00
sw_isr_table.h
sys_clock.h
sys_io.h
syscall.h
toolchain.h
uart.h
watchdog.h
zephyr.h