aboutsummaryrefslogtreecommitdiff
path: root/fs/qnx6
diff options
context:
space:
mode:
authorSuzuki K Poulose2016-08-25 15:19:05 -0600
committerGreg Kroah-Hartman2016-08-31 13:05:43 +0200
commit9486295ad159fac87eb05bd683445be06a3b69f5 (patch)
tree816579242f76e6481e8900d150391a17e646a438 /fs/qnx6
parent7f73b0b9faa11446f73dba02811f928a230773c5 (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