Thread (21 messages) read the whole thread 21 messages, 5 authors, 2015-01-13

[PATCH 5/7 v6] ARM: l2c: parse 'cache-size' and 'cache-sets' properties

From: arnd@arndb.de (Arnd Bergmann)
Date: 2014-09-08 12:20:21
Also in: linux-devicetree, linux-leds, linux-pm

On Monday 08 September 2014 13:38:04 Linus Walleij wrote:
+       of_property_read_u32(np, "cache-size", &size);
+       of_property_read_u32(np, "cache-sets", &sets);
+
+       if (!size || !sets)
+               return;
+
+       way_size = size / sets;
Going back to this one: Isn't (size / sets) the set-size rather
than the way-size?

After we discussed this on IRC, I had expected a calculation like

	set_size = size / sets;
	ways = set_size / line_size;
	way_size = size / ways;

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help