History

mm: remove the HMM config option

All the mm/hmm.c code is better keyed off HMM_MIRROR. Also let nouveau depend on it instead of the mix of a dummy dependency symbol plus the actually selected one. Drop various odd dependencies, as the code is pretty portable.

Christoph Hellwig committed 7 years ago

Commit 43535b01 parent 7328d9c6 files · +8 −33Browse files

Showing the changes to include/linux (2 of 6 files). Show all

Unified · Split

2 files
  1. include/linux/hmm.h +1 −4
  2. include/linux/mm_types.h +1 −1
include/linux/hmm.h+1−4
@@ -62,7 +62,7 @@ · 61 unmodified lines
6262 #include <linux/kconfig.h>
6363 #include <asm/pgtable.h>
6464
65−#if IS_ENABLED(CONFIG_HMM)
65+#ifdef CONFIG_HMM_MIRROR
6666
6767 #include <linux/device.h>
6868 #include <linux/migrate.h>
@@ -332,9 +332,6 @@ static inline uint64_t hmm_pfn_from_pfn(const struct hmm_range *range, · 263 unmodified lines
332332 return hmm_device_entry_from_pfn(range, pfn);
333333 }
334334
335−
336−
337−#if IS_ENABLED(CONFIG_HMM_MIRROR)
338335 /*
339336 * Mirroring: how to synchronize device page table with CPU page table.
340337 *
include/linux/mm_types.h+1−1
@@ -501,7 +501,7 @@ struct mm_struct { · 500 unmodified lines
501501 #endif
502502 struct work_struct async_put_work;
503503
504−#if IS_ENABLED(CONFIG_HMM)
504+#ifdef CONFIG_HMM_MIRROR
505505 /* HMM needs to track a few things per mm */
506506 struct hmm *hmm;
507507 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t