CONFIG_THREAD_OPTIONROMS depends on CONFIG_THREADS, so the code can
assume that the two are always on when CONFIG_THREAD_OPTIONROMS is on.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
xen_hypercall_setup();
// Start hardware initialization (if optionrom threading)
- if (CONFIG_THREADS && CONFIG_THREAD_OPTIONROMS)
+ if (CONFIG_THREAD_OPTIONROMS)
device_hardware_setup();
// Find and initialize other cpus
vgarom_setup();
// Do hardware initialization (if running synchronously)
- if (!CONFIG_THREADS || !CONFIG_THREAD_OPTIONROMS) {
+ if (!CONFIG_THREAD_OPTIONROMS) {
device_hardware_setup();
wait_threads();
}
void
start_preempt(void)
{
- if (! CONFIG_THREADS || ! CONFIG_THREAD_OPTIONROMS)
+ if (! CONFIG_THREAD_OPTIONROMS)
return;
CanPreempt = 1;
PreemptCount = 0;
void
finish_preempt(void)
{
- if (! CONFIG_THREADS || ! CONFIG_THREAD_OPTIONROMS) {
+ if (! CONFIG_THREAD_OPTIONROMS) {
yield();
return;
}
int
wait_preempt(void)
{
- if (MODESEGMENT || !CONFIG_THREADS || !CONFIG_THREAD_OPTIONROMS
- || !CanPreempt)
+ if (MODESEGMENT || !CONFIG_THREAD_OPTIONROMS || !CanPreempt)
return 0;
while (CanPreempt)
yield();
void
check_preempt(void)
{
- if (! CONFIG_THREADS || ! CONFIG_THREAD_OPTIONROMS
- || !GET_GLOBAL(CanPreempt)
+ if (! CONFIG_THREAD_OPTIONROMS || !GET_GLOBAL(CanPreempt)
|| GET_FLATPTR(MainThread.next) == &MainThread)
return;