lkml.org 
[lkml]   [2016]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC 1/8] mm: Define coherent device memory node
From
Date
> +#ifdef CONFIG_COHERENT_DEVICE
> +#define node_cdm(nid) (NODE_DATA(nid)->coherent_device)
> +#define set_cdm_isolation(nid) (node_cdm(nid) = 1)
> +#define clr_cdm_isolation(nid) (node_cdm(nid) = 0)
> +#define isolated_cdm_node(nid) (node_cdm(nid) == 1)
> +#else
> +#define set_cdm_isolation(nid) ()
> +#define clr_cdm_isolation(nid) ()
> +#define isolated_cdm_node(nid) (0)
> +#endif

FWIW, I think adding all this "cdm" gunk in the names is probably a bad
thing.

I can think of other memory types that are coherent, but
non-device-based that might want behavior like this.

\
 
 \ /
  Last update: 2016-10-24 19:09    [W:0.594 / U:0.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site