<div>Hi all,</div>
<div>I am working on android, linux kernel version: 2.6.35.11</div>
<div> </div>
<div>I am getting this following error message. I know it occurs when u call a sleeping function in atomic context.</div>
<div>As far as i knew the entire stack of functions,nothing is atomic context(these are standard platform dev add functions...)</div>
<div> </div>
<div>Now i want to know these things..</div>
<div>1) Is there any method to know, when and where this atomic context started? </div>
<div> (i put a log in the "msm_bus_fabric_probe" function, to check whether it is atomic or not using "in_atomic()"..it is giving '0', and also i read that in_atomic wont always work well in all cases in the header file)</div>
<div> </div>
<div>2) Can we neglect this warning, is it very important? because lot of similer cases,(where "clk_get_sys" is called)</div>
<div>are working fine. only this thing is showing warning message. can we overlook this?</div>
<div> </div>
<div>pls tell me </div>
<div> </div>
<div> </div>
<div> </div>
<div>[ 0.267394] BUG: sleeping function called from invalid context at /home/sandeep_CELOX_NTT/android/kernel/kernel/mutex.c:94<br><3>[ 0.267455] in_atomic(): 1, irqs_disabled(): 0, pid: 1, name: swapper<br><4>[ 0.267517] [<c01076a0>] (unwind_backtrace+0x0/0x164) from [<c07233f0>] (mutex_lock+0x18/0x38)<br>
<4>[ 0.267578] [<c07233f0>] (mutex_lock+0x18/0x38) from [<c010e5dc>] (clk_get_sys+0x2c/0xe4)<br><4>[ 0.267608] [<c010e5dc>] (clk_get_sys+0x2c/0xe4) from [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818)<br>
<4>[ 0.267639] [<c01869b4>] (msm_bus_fabric_probe+0x630/0x818) from [<c0417b2c>] (platform_drv_probe+0x18/0x1c)<br><4>[ 0.267669] [<c0417b2c>] (platform_drv_probe+0x18/0x1c) from [<c0416788>] (driver_probe_device+0x19c/0x34c)<br>
<4>[ 0.267730] [<c0416788>] (driver_probe_device+0x19c/0x34c) from [<c04159c0>] (bus_for_each_drv+0x48/0x84)<br><4>[ 0.267761] [<c04159c0>] (bus_for_each_drv+0x48/0x84) from [<c0416a84>] (device_attach+0x64/0x88)<br>
<4>[ 0.267791] [<c0416a84>] (device_attach+0x64/0x88) from [<c0415788>] (bus_probe_device+0x24/0x40)<br><4>[ 0.267822] [<c0415788>] (bus_probe_device+0x24/0x40) from [<c04139a0>] (device_add+0x39c/0x52c)<br>
<4>[ 0.267852] [<c04139a0>] (device_add+0x39c/0x52c) from [<c0418158>] (platform_device_add+0x16c/0x1e8)<br><4>[ 0.267883] [<c0418158>] (platform_device_add+0x16c/0x1e8) from [<c0418498>] (platform_add_devices+0x1c/0x60)<br>
<4>[ 0.267913] [<c0418498>] (platform_add_devices+0x1c/0x60) from [<c00147d4>] (msm8x60_init+0x378/0x14a4)<br clear="all"><br>-- <br>With regards,<br>Sandeep Kumar Anantapalli,<br><br></div>