summaryrefslogtreecommitdiff
path: root/crc32.h
blob: 72da4e0817a0e4f8b0dfbc8d11e7c7c834b9072d (plain)
1
2
3
4
5
6
#ifndef _CRC32_H_
#define _CRC32_H_

extern uint32_t crc32(uint32_t crc, unsigned char *buf, size_t len);

#endif /* _CRC32_H_ */
);'>mode:
Diffstat
td>
2016-06-29 12:27:22 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2016-06-29 15:53:15 +0100
commit18f4b8435c50888bb36cf8de3b7f0075f00dc12c (patch)
tree22fc1a86c1c0461f418df08faccce9e92540d664
parentc68b0ab2e08fd8913a794d11e74cbf5cd589b3df (diff)
drm/i915: Use atomic waits for short non-atomic ones
usleep_range is not recommended for waits shorten than 10us. Make the wait_for_us use the atomic variant for such waits. To do so we need to reimplement the _wait_for_atomic macro to be safe with regards to preemption and interrupts. v2: Reimplement _wait_for_atomic to be irq and preemption safe. (Chris Wilson and Imre Deak) v3: Fixed in_atomic check due rebase error. v4: Build bug on non-constant timeouts. v5: Compile away cpu migration code in atomic paths. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Imre Deak <imre.deak@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: http://patchwork.freedesktop.org/patch/msgid/1467114710-29989-1-git-send-email-tvrtko.ursulin@linux.intel.com
Diffstat