#include <linux/types.h> #include <linux/nodemask.h> #include <linux/kref.h> #include <linux/mmzone.h> #include <linux/notifier.h> /* * Each tier cover a abstrace distance chunk size of 128
*/ #define MEMTIER_CHUNK_BITS 7 #define MEMTIER_CHUNK_SIZE (1 << MEMTIER_CHUNK_BITS) /* * Smaller abstract distance values imply faster (higher) memory tiers. Offset * the DRAM adistance so that we can accommodate devices with a slightly lower * adistance value (slightly faster) than default DRAM adistance to be part of * the same memory tier.
*/ #define MEMTIER_ADISTANCE_DRAM ((4L * MEMTIER_CHUNK_SIZE) + (MEMTIER_CHUNK_SIZE >> 1))
struct memory_tier; struct memory_dev_type { /* list of memory types that are part of same tier as this type */ struct list_head tier_sibling; /* list of memory types that are managed by one driver */ struct list_head list; /* abstract distance for this specific memory type */ int adistance; /* Nodes of same abstract distance */
nodemask_t nodes; struct kref kref;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.