]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: Prepare class allocation for dynamically allocated modules
authorTony Lindgren <tony@atomide.com>
Thu, 21 Mar 2019 18:00:21 +0000 (11:00 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 26 Mar 2019 18:26:25 +0000 (11:26 -0700)
commit85f898f76b84a0df7a76dfbed5ea302ccb46e46e
tree496a05a71d8578b252146adc78a2620291b0ec62
parentaec4f1ede3c5592278e12a1bbe576b3306594b93
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>
arch/arm/mach-omap2/omap_hwmod.c