No, there's no API that I'm aware of.  It's the job of the governor / power 
management system to spin up the right number of cores and configure 
voltages and clock frequencies depending on workload, battery status, 
charger status, etc.

On Tuesday, October 9, 2012 1:27:31 AM UTC-7, Zheyu Jin wrote:
>
> Hi all
>
> I'm working on a app which has to use both of the 2 cpu core to perform 
> time-consuming tasks on a dual core android device.
> But seems there is no direct way to control the second cpu core's status 
> in  App's runtime..
>
> Is there a way to  programmatically(Java or C/C++) enable/disable the 
> second cpu core?
>
> I know this can be done in command line:
> *adb shell "echo 1 > /sys/devices/system/cpu/cpu1/online"*
>
>
> Thanks in advance.
> Rex
>

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to