Messages in this thread | | | Date | Thu, 10 Mar 2022 17:01:21 +0100 | From | Borislav Petkov <> | Subject | Re: [PATCH v4 07/24] EDAC/amd64: Define function to dehash address |
| |
On Wed, Mar 09, 2022 at 09:50:06PM +0000, Yazen Ghannam wrote: > But I can do something like you suggest. There will be an unconditional call > to dehash_addr(). Helper functions will be called for specific interleave > modes. Otherwise, it'll return 0 if hashing isn't used.
That sounds like proper design to me. A single function which dehashes an address and that's the only thing it does but it takes care of all possible cases.
Yap. :-)
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| |