From: Lukasz Odzioba <lukasz.odzioba@intel.com>
To: fenghua.yu@intel.com
Cc: jdelvare@suse.de, linux@roeck-us.net, lm-sensors@lm-sensors.org,
linux-kernel@vger.kernel.org
Subject: hwmon: coretemp: use dynamically allocated array to store per core data
Date: Fri, 11 Sep 2015 15:56:49 +0200 [thread overview]
Message-ID: <1441979810-22810-1-git-send-email-lukasz.odzioba@intel.com> (raw)
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.
next reply other threads:[~2015-09-11 13:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-11 13:56 Lukasz Odzioba [this message]
2015-09-11 13:56 ` [PATCH 1/1] " Lukasz Odzioba
2015-09-11 14:28 ` Guenter Roeck
2015-09-18 15:33 ` Odzioba, Lukasz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1441979810-22810-1-git-send-email-lukasz.odzioba@intel.com \
--to=lukasz.odzioba@intel.com \
--cc=fenghua.yu@intel.com \
--cc=jdelvare@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=lm-sensors@lm-sensors.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®