Repository navigation
Commit a760268
hrtimer: Move copyout of remaining time to do_nanosleep()
The hrtimer nanosleep() implementation can be simplified by moving the copy
out of the remaining time to do_nanosleep() which is shared between the
real nanosleep function and the restart function.
The pointer to the timespec64 which is updated is already stored in the
restart block at the call site, so the seperate handling of nanosleep and
restart function can be avoided.
[ tglx: Added changelog ]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170607084241.28657-4-viro@ZenIV.linux.org.uk1 parent 192a82f commit a760268
1 file changed
Lines changed: 20 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
| 1444 | + | |
1444 | 1445 | | |
1445 | 1446 | | |
1446 | 1447 | | |
| |||
1457 | 1458 | | |
1458 | 1459 | | |
1459 | 1460 | | |
1460 | | - | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
| 1461 | + | |
1470 | 1462 | | |
1471 | | - | |
1472 | 1463 | | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
1476 | | - | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
| 1472 | + | |
| 1473 | + | |
| 1474 | + | |
| 1475 | + | |
1477 | 1476 | | |
1478 | 1477 | | |
1479 | 1478 | | |
1480 | 1479 | | |
1481 | 1480 | | |
1482 | | - | |
1483 | | - | |
| 1481 | + | |
1484 | 1482 | | |
1485 | 1483 | | |
1486 | 1484 | | |
1487 | 1485 | | |
1488 | 1486 | | |
1489 | | - | |
1490 | | - | |
1491 | | - | |
1492 | | - | |
1493 | | - | |
1494 | | - | |
1495 | | - | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
| 1487 | + | |
1502 | 1488 | | |
1503 | 1489 | | |
1504 | 1490 | | |
1505 | 1491 | | |
1506 | 1492 | | |
1507 | 1493 | | |
1508 | 1494 | | |
1509 | | - | |
1510 | | - | |
| 1495 | + | |
1511 | 1496 | | |
1512 | 1497 | | |
1513 | 1498 | | |
| |||
1518 | 1503 | | |
1519 | 1504 | | |
1520 | 1505 | | |
1521 | | - | |
| 1506 | + | |
| 1507 | + | |
1522 | 1508 | | |
1523 | 1509 | | |
1524 | 1510 | | |
| |||
1527 | 1513 | | |
1528 | 1514 | | |
1529 | 1515 | | |
1530 | | - | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
| 1516 | + | |
1537 | 1517 | | |
1538 | 1518 | | |
1539 | 1519 | | |
1540 | | - | |
1541 | | - | |
1542 | 1520 | | |
1543 | 1521 | | |
1544 | 1522 | | |
| |||
0 commit comments