lkml.org 
[lkml]   [2017]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch V2 08/10] timer: Implement the hierarchical pull model
On Tue, Apr 18, 2017 at 01:11:10PM +0200, Thomas Gleixner wrote:
> +struct tmigr_group {
> + raw_spinlock_t lock;
> + unsigned int active;
> + unsigned int migrator;
> + struct timerqueue_head events;
> + struct tmigr_event groupevt;
> + struct tmigr_group *parent;
> + cpumask_var_t cpus;
> + struct list_head list;
> + unsigned int level;
> + unsigned int numa_node;
> + unsigned int num_childs;
> +};

If you place the cpumask at the end, as a 0 sized array, you can avoid a
second allocation.

\
 
 \ /
  Last update: 2017-04-19 09:35    [W:0.187 / U:16.788 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site