diff options
author | Tony Lindgren <tony@atomide.com> | 2019-03-21 11:00:21 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2019-03-26 11:26:25 -0700 |
commit | 513a4abb19d55253ea9490288986ec781a78b786 (patch) | |
tree | 496a05a71d8578b252146adc78a2620291b0ec62 /mm | |
parent | 798bd175ab0d8024652ddba2cacaba6768c63c30 (diff) | |
download | linux-513a4abb19d55253ea9490288986ec781a78b786.tar.bz2 |
ARM: OMAP2+: Prepare class allocation for dynamically allocated modules
For dynamically allocated sysconfig data we only need to allocate a new
class for the cases where the class is shared. For dynamically allocated
struct omap_hwmod we will always allocate a new class.
Let's add detection for when we need to allocate a new class by comparing
the class name against the module name. If they match, there's no need
to allocate a new calls as we don't have case of mixed platform data and
dts data initialized modules for the same class.
Let's also move the init of class data inside the spinlock.
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions