mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4743 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -615,17 +615,10 @@ static inline atomic_t *scst_get(void)
|
||||
atomic_t *a;
|
||||
/*
|
||||
* We don't mind if we because of preemption inc counter from another
|
||||
* CPU as soon in the majority cases we will the correct one. So, let's
|
||||
* have preempt_disable/enable only in the debug build to avoid warning.
|
||||
* CPU as soon in the majority cases we will the correct one.
|
||||
*/
|
||||
#ifdef CONFIG_DEBUG_PREEMPT
|
||||
preempt_disable();
|
||||
#endif
|
||||
a = &scst_percpu_infos[smp_processor_id()].cpu_cmd_count;
|
||||
a = &scst_percpu_infos[raw_smp_processor_id()].cpu_cmd_count;
|
||||
atomic_inc(a);
|
||||
#ifdef CONFIG_DEBUG_PREEMPT
|
||||
preempt_enable();
|
||||
#endif
|
||||
TRACE_DBG("Incrementing cpu_cmd_count %p (new value %d)",
|
||||
a, atomic_read(a));
|
||||
/* See comment about smp_mb() in scst_suspend_activity() */
|
||||
|
||||
Reference in New Issue
Block a user