Skip to content

Commit

Permalink
[IA64-SGI] fix bte_copy() calling smp_processor_id() while preemptible
Browse files Browse the repository at this point in the history
bte_copy() calls calls smp_processor_id(), which will get flagged if
preemption if enabled.  raw_smp_processor_id() is used instead 
because we are just using it to pick a BTE interface and are not 
tied to a specific cpu.

Signed-off-by: Russ Anderson (rja@sgi.com)
Signed-off-by: Tony Luck <tony.luck@intel.com>
  • Loading branch information
Russ Anderson authored and Tony Luck committed Aug 26, 2005
1 parent 8409668 commit d1e079b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ia64/sn/kernel/bte.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification)
/*
* Start with interface corresponding to cpu number
*/
bte_first = get_cpu() % btes_per_node;
bte_first = raw_smp_processor_id() % btes_per_node;

if (mode & BTE_USE_DEST) {
/* try remote then local */
Expand Down

0 comments on commit d1e079b

Please sign in to comment.