lkml.org 
[lkml]   [2009]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: unified percpu stuff
Tejun Heo wrote:
> The current tj-percpu[1] contains Brian's commit which consolidates
> load_gs_base() into switch_to_new_gdt(),

There's a bit of a bootstrap problem using switch_to_new_gdt() on the
boot CPU: it uses smp_processor_id, which ends up doing a
percpu_read(cpu_number), which naturally crashes because %gs isn't set
up yet. Perhaps switch_to_new_gdt() should take the cpu number as a
parameter (or at least a __switch_to_new_gdt variant which does).

J



\
 
 \ /
  Last update: 2009-01-29 11:45    [W:0.101 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site