udata: optimise the udata handling further for bankfixed
authorAlan Cox <alan@linux.intel.com>
Tue, 2 Jun 2015 17:23:18 +0000 (18:23 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 2 Jun 2015 17:23:18 +0000 (18:23 +0100)
commite192727cfe8f8b32dcbcc749fd0c0cdfdba8e0aa
treeae5d5cc254ac9f82ae7e0868e46bfe5a284fc7dc
parent40fdffce86741a630d3f9afc2caa1358194195dc
udata: optimise the udata handling further for bankfixed

Take the idle in the thread doing switchout() and make it act simply as a
function call (no udata switch) providing

- We go from just us running to idle
- We are the only process woken

This saves us a lot. It has to be per arch and per banking type but it does
live entirely in switchout() and is invisible to the core so has no affect
on anything it doesn't work with or where it makes no sense.

Also add it for the 6809, although the 6809 changes from nready all still
need debugging first, so its disabled.
Kernel/include/kdata.h
Kernel/kdata.c
Kernel/lib/z80fixedbank.s
Kernel/platform-dragon-nx32/tricks.s