qcom: msm: event-timer: Check the cpu num before adding a new event-timer
The cpu on which the new event timer is setup is calculated from
the cpumask data sent to the api. Add a check to make sure that
the calculated cpu number is within bounds. If the cpu number is
out of bounds, use the first online cpu to setup the event timer.
Also add the same bounds check to the cpu used in the irq affinity
change notifier.
Change-Id: I9f552ec506f0e69188a60884c4d820782196e5cf
Signed-off-by:
Karthik Parsha <kparsha@codeaurora.org>
Loading
Please register or sign in to comment