Factor out duplicated code for hotplug

Registered by Daniel Lezcano

The code is duplicated in the different arch/arm/mach-*/hotplug.c
Also, the WFI function looks weird: investigate the replacement with the cpu_do_idle function.

Blueprint information

Status:
Complete
Approver:
Daniel Lezcano
Priority:
Medium
Drafter:
Daniel Lezcano
Direction:
Approved
Assignee:
sanjay singh rawat
Definition:
Approved
Series goal:
Accepted for trunk
Implementation:
Implemented
Milestone target:
milestone icon 2013.06
Started by
Amit Kucheria
Completed by
Daniel Lezcano

Related branches

Sprints

Whiteboard

Despite what it looks like, the code across, the different SoC, could be much more different than what it appears. The code is resulting of multiple copy'n paste.

Russell King clearly describe the differences and it is not worth to go further for now in the code consolidation around this area.

http://archive.arm.linux.org.uk/lurker/message/20130531.104426.c92e8271.en.html

(?)

Work Items

Work items:
[sanjay-rawat] study the common hot plug function of various arm platforms : DONE
[sanjay-rawat] send patch to move hot plug functions from different SoC platform code to common hot plug code : DONE

This blueprint contains Public information 
Everyone can see this information.