Skip to content
Snippets Groups Projects
  • Nadav Har'El's avatar
    947b49ee
    sched: avoid unnecessary FPU saving · 947b49ee
    Nadav Har'El authored
    Because of Linux's calling convention, it should not be necessary to
    save the FPU state when a reschedule is caused by a function call.
    
    Because we had a bug and forgot to save the FPU state when calling
    a signal handler, and because this signal handler can cause a reschedule,
    we had to save the FPU on any reschedule. But after fixing that bug, we
    no longer need these unnecessary FPU saves.
    
    The "sunflow" benchmark still runs well after this patch.
    947b49ee
    History
    sched: avoid unnecessary FPU saving
    Nadav Har'El authored
    Because of Linux's calling convention, it should not be necessary to
    save the FPU state when a reschedule is caused by a function call.
    
    Because we had a bug and forgot to save the FPU state when calling
    a signal handler, and because this signal handler can cause a reschedule,
    we had to save the FPU on any reschedule. But after fixing that bug, we
    no longer need these unnecessary FPU saves.
    
    The "sunflow" benchmark still runs well after this patch.