__releases(&pool->lock)
__acquires(&pool->lock)
{
+#ifdef CONFIG_AMLOGIC_MODIFY
+ int work_color;
+ struct worker *collision;
+ bool cpu_intensive;
+ struct pool_workqueue *pwq = get_work_pwq(work);
+ struct worker_pool *pool = worker->pool;
+#else
struct pool_workqueue *pwq = get_work_pwq(work);
struct worker_pool *pool = worker->pool;
bool cpu_intensive = pwq->wq->flags & WQ_CPU_INTENSIVE;
int work_color;
struct worker *collision;
+#endif
+
#ifdef CONFIG_LOCKDEP
/*
* It is permissible to free the struct work_struct from
lockdep_copy_map(&lockdep_map, &work->lockdep_map);
#endif
+#ifdef CONFIG_AMLOGIC_MODIFY
+ if (!pwq) {
+ WARN_ONCE(1, "Warning: pool_workqueue is NULL!!!!!!!!!!!!.\n");
+ return;
+ }
+
+ cpu_intensive = pwq->wq->flags & WQ_CPU_INTENSIVE;
+#endif
/* ensure we're on the correct CPU */
WARN_ON_ONCE(!(pool->flags & POOL_DISASSOCIATED) &&
raw_smp_processor_id() != pool->cpu);