Thread (28 messages) 28 messages, 8 authors, 2014-08-01

[PATCH 6/6] thermal: Add Tegra SOCTHERM thermal management driver

flat view

From: Tuomas Tynkkynen <hidden>
Date: 2014-07-01 23:48:18
Also in: linux-pm, linux-tegra, lkml

On 27/06/14 11:11, Mikko Perttunen wrote:
quoted hunk ↗ jump to hunk
+	/* Sign extend from 6 bits to 32 bits */
+	shifted_cp = (s32)((val & 0x1f) | ((val & 0x20) ? 0xffffffe0 : 0x0));
+	val = ((val & (0x1f << 21)) >> 21);
+	/* Sign extend from 5 bits to 32 bits */
+	shifted_ft = (s32)((val & 0xf) | ((val & 0x10) ? 0xfffffff0 : 0x0));
There's sign_extend32 in bitops.h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help