lkml.org 
[lkml]   [2009]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Commit 34d76c41 causes linker errors on ia64 with NR_CPUS=4096
Tejun Heo wrote:
> Jiri Kosina wrote:
>> So how about something along the lines below? (completely untested as
>> well)
>>
>> From: Jiri Kosina <jkosina@suse.cz>
>> Subject: sched: move rq_weight data array out of .percpu
>>
>> Commit 34d76c41 introduced percpu array update_shares_data, size of which
>> being proportional to NR_CPUS. Unfortunately this blows up ia64 for large
>> NR_CPUS configuration, as ia64 allows only 64k for .percpu section.
>>
>> Fix this by allocating this array dynamically and keep only pointer to it
>> percpu.
>
> Looks good to me from percpu POV.

Oh... one thing. If you're doing dynamic allocation you can use
nr_cpu_ids instead of NR_CPUS.

--
tejun


\
 
 \ /
  Last update: 2009-10-20 08:15    [W:0.065 / U:0.116 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site