public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* hwmon: coretemp: use dynamically allocated array to store per core data
@ 2015-09-11 13:56 Lukasz Odzioba
  2015-09-11 13:56 ` [PATCH 1/1] " Lukasz Odzioba
  0 siblings, 1 reply; 4+ messages in thread
From: Lukasz Odzioba @ 2015-09-11 13:56 UTC (permalink / raw)
  To: fenghua.yu; +Cc: jdelvare, linux, lm-sensors, linux-kernel

This patch is continuation of my previous work. After Guenter Roeck's and Jean Delware's comments I changed list to an array. Initial array size is 4 and it is extended when core id exeeds size of the array, which in practice can mean every time a new core is initialized. I am not sure whether it is reasonable since it implies a lot of krealloc calls with small size increments. Please let me know if you think that more greedy approach would be better here. 

Comments are welcome.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-18 15:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-11 13:56 hwmon: coretemp: use dynamically allocated array to store per core data Lukasz Odzioba
2015-09-11 13:56 ` [PATCH 1/1] " Lukasz Odzioba
2015-09-11 14:28   ` Guenter Roeck
2015-09-18 15:33     ` Odzioba, Lukasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox