[lkml]   [2010]   [Mar]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Questions about SMP bootup control
"Zhu, Yijun (NSN - CN/Beijing)" <> writes:

> Hi All:
> I want to do some modification on the SMP architecture.
> Purpose:
> Only the first CPU is running the linux OS, while others do some private
> services processing.
> My solution:
> In the end of the start_secondary() function, I try to schedu the slave
> cpu to call my private endless loop instead of cpu_idle();
> Result:
> The system can NOT up, there is no interactive cli.
> Question:
> Is there some wrong with my modification or I go to the wrong way?

Presumably you're doing this to own that CPU exclusively.

Hooking at cpu_idle is not very useful then because interrupts will be
already enabled and the system participate in IPIs etc, so you can't
simply disable them, the others will miss them.

You would rather need to prevent them from being started in the
first place, e.g. by exluding them with maxcpus=..

A better alternative might be to use isolcpus=... and schedule
a standard program.

-- -- Speaking for myself only.

 \ /
  Last update: 2010-03-22 04:31    [W:0.077 / U:14.236 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site