Changeset bea6233 in mainline for kernel/arch/ia64/include/arch/asm.h


Ignore:
Timestamp:
2023-02-26T15:27:13Z (14 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7cf5ddb
Parents:
deed510
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-26 15:18:02)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-26 15:27:13)
Message:

Replace cpu_sleep() with cpu_interruptible_sleep()

The new function combines interrupt reenabling with sleep,
so that a platform can implement this sequence atomically.
This is currently done only on ia32 and amd64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/include/arch/asm.h

    rdeed510 rbea6233  
    473473    uint64_t, uint64_t);
    474474
     475/** Enables interrupts and blocks until an interrupt arrives,
     476 * atomically if possible on target architecture.
     477 * Disables interrupts again before returning to caller.
     478 */
     479_NO_TRACE static inline void cpu_interruptible_sleep(void)
     480{
     481        // FIXME: do this properly
     482        interrupts_enable();
     483        cpu_sleep();
     484        interrupts_disable();
     485}
     486
    475487#endif
    476488
Note: See TracChangeset for help on using the changeset viewer.