2008-08-10 20:27:14 UTC
only called *sometimes*. It will be called the first time cache is created,
but then not when the cache is modified - but this is not always true
- setup init_lru to assign a constant value to lru, like 1 or anything other
- create a new cache: 1, 4, 16, LRU, WB
- notice only the first set gets lru initialized
Am I missing something? It seems like init_lru should be called for all
cache blocks right?
I just noticed, it seems like init_lru is being called based on the
associativity, not the number of sets. So if associativity is 2 and there
are 4 sets, it will update 2 sets instead of 4.