Re: arm_memblock_steal() API usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

On Tue, Apr 03, 2012 at 09:34:03AM +0530, Taniya Das wrote:
> I have a requirement where I need around ~100 bytes of memory to save  
> contents of
> registers to a non-cached area before going into low power mode.
>
> I did do some analysis on a 1GB RAM device of allocating 8 bytes using  
> the API and the below was the result
> was showing allocating only 8 bytes.
>
> API used : -  arm_memblock_steal(SZ_8, SZ_64K);--> physical address  
> returned is 0x3b1f0000

It's silly to use this for the above purpose.  Why not just use kmalloc
and cache flushing to ensure that the data is pushed out to RAM?

> Also is this API advisable for devices with low system RAM?

No.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter