diff options
author | Suzuki K Poulose | 2016-08-25 15:19:05 -0600 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-08-31 13:05:43 +0200 |
commit | 9486295ad159fac87eb05bd683445be06a3b69f5 (patch) | |
tree | 816579242f76e6481e8900d150391a17e646a438 /fs/qnx6 | |
parent | 7f73b0b9faa11446f73dba02811f928a230773c5 (diff) |
coresight: Use local coresight_desc instances
Each coresight device prepares a description for coresight_register()
in struct coresight_desc. Once we register the device, the description is
useless and can be freed. The coresight_desc is small enough (48bytes on
64bit)i to be allocated on the stack. Hence use an automatic variable to
avoid a needless dynamic allocation and wasting the memory(which will only
be free'd when the device is destroyed).
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Pratik Patel <pratikp@codeaurora.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions