atom.c (e4da3fbfbd1de56d2367653e3823e6445e49f8a9) | atom.c (cc1f71942944890c7e05fc55dc4427c94b63d4f1) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 651 unchanged lines hidden (view full) --- 660} 661 662static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) 663{ 664 unsigned count = U8((*ptr)++); 665 SDEBUG(" count: %d\n", count); 666 if (arg == ATOM_UNIT_MICROSEC) 667 udelay(count); | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 651 unchanged lines hidden (view full) --- 660} 661 662static void atom_op_delay(atom_exec_context *ctx, int *ptr, int arg) 663{ 664 unsigned count = U8((*ptr)++); 665 SDEBUG(" count: %d\n", count); 666 if (arg == ATOM_UNIT_MICROSEC) 667 udelay(count); |
668 else if (!drm_can_sleep()) 669 mdelay(count); |
|
668 else 669 msleep(count); 670} 671 672static void atom_op_div(atom_exec_context *ctx, int *ptr, int arg) 673{ 674 uint8_t attr = U8((*ptr)++); 675 uint32_t dst, src; --- 716 unchanged lines hidden --- | 670 else 671 msleep(count); 672} 673 674static void atom_op_div(atom_exec_context *ctx, int *ptr, int arg) 675{ 676 uint8_t attr = U8((*ptr)++); 677 uint32_t dst, src; --- 716 unchanged lines hidden --- |